:root {
    --color-background: #F5F7FA;
    --color-white: #FFFFFF;
    --color-text-primary: #1E293B;
    --color-text-secondary: #64748B;
    --color-primary: #6366F1;
    --color-primary-hover: #4F46E5;
    --color-input-bg: #F8FAFC;
    --color-input-border: #E2E8F0;
    --color-success: #22C55E;
    --color-error: #EF4444;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px -12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 0;
}

/* ============================
   Layout Desktop (2 colunas)
   ============================ */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 580px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Lado esquerdo - branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #818CF8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.login-branding .brand-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-branding h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.login-branding p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 280px;
}

.brand-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 260px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-feature svg {
    flex-shrink: 0;
    opacity: 0.9;
    margin-top: 0;
}

.brand-feature span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

/* Lado direito - formulario */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.login-header {
    margin-bottom: 1.75rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.login-header p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

/* Formulario */
.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label,
.create-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border: 1.5px solid var(--color-input-border);
    border-radius: 10px;
    background-color: var(--color-input-bg);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.input-container input::placeholder {
    color: #94A3B8;
}

.input-container input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    display: flex;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.remember-me label {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Botoes */
.login-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.login-btn:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.botao-criar {
    margin-top: 1.5rem;
}

/* Botao Google - alinhamento correto */
.google-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--color-white);
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-input-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.google-btn:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-btn:active {
    transform: scale(0.99);
    background-color: #F1F5F9;
}

.google-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
}

/* Esqueci senha */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.forgot-password:hover {
    text-decoration: underline;
}

.senharest {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-primary);
    padding: 0;
    outline: none;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.senharest:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--color-input-border);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

/* Links */
.signup-link {
    display: block;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    margin-top: 1rem;
}

.signup-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Footer info */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Modal reset senha */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    color: #94A3B8;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover {
    color: #475569;
}

/* Feedback */
.feedback {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-success);
    min-height: 1.2em;
}

.feedback.error {
    color: var(--color-error);
}

/* ============================
   Mobile - coluna unica
   ============================ */
@media (max-width: 768px) {
    body {
        padding: 0;
        justify-content: flex-start;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-branding {
        padding: 2.5rem 2rem 2rem;
        min-height: auto;
    }

    .login-branding h1 {
        font-size: 1.5rem;
    }

    .brand-features {
        display: none;
    }

    .login-form-side {
        padding: 2rem 1.5rem;
        flex: 1;
    }

    .login-footer {
        margin-top: auto;
        padding: 1.5rem;
    }
}
