* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-blue: #4A90E2;
    --light-blue: #E8F4FD;
    --sidebar-bg: #2C3E50;
    --sidebar-hover: #34495E;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --bg-light: #F5F7FA;
    --error-red: #E74C3C;
    --success-green: #27AE60;
    --notification-red: #FF4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-light);
}

/* Formulário Centralizado */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.login-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    border: 1px solid var(--border-color);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.login-header {
    margin-bottom: 32px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: -0.3px;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.3s;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Password Input */
.password-input-container {
    position: relative;
}

.password-input-container input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-blue);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.toggle-password.active .eye-icon {
    color: var(--primary-blue);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.remember-me span {
    font-size: 14px;
    color: var(--text-dark);
}

/* Login Button */
.login-button {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-button:hover {
    background: #357ABD;
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.button-text {
    display: inline-block;
}

.button-loader {
    display: none;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loader {
    display: inline-block;
}

/* Spinner */
.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: var(--white);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--primary-blue);
}

/* Error Message */
.error-message {
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-red);
    border-radius: 6px;
    color: var(--error-red);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .login-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .logo-title {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 14px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }

    .logo-title {
        font-size: 20px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }
}

