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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3748;
    background-color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #f0f0f0;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 40px rgba(0, 0, 0, 0.06);
}

.login-card__logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card__selo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: var(--lbx-azul);
    border: 3px solid var(--lbx-amarelo);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.login-card__logo-sub {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a0aec0;
    margin-top: 0.25rem;
}

.login-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.375rem;
}

.login-card__subtitle {
    font-size: 0.875rem;
    color: #a0aec0;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #2d3748;
    background: #fafbfc;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-input::placeholder {
    color: #cbd5e0;
}

.form-input:focus {
    border-color: var(--lbx-azul);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 23, 26, 0.1);
}

.form-input--password {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--lbx-azul);
}

.toggle-password .icon-eye-off {
    display: none;
}

.toggle-password.active .icon-eye {
    display: none;
}

.toggle-password.active .icon-eye-off {
    display: block;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.forgot-password {
    font-size: 0.8125rem;
    color: var(--lbx-azul);
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--lbx-azul-escuro);
    text-decoration: underline;
}

.login-criar-conta {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #718096;
}

.login-criar-conta a {
    color: var(--lbx-azul);
    font-weight: 600;
}

.login-criar-conta a:hover {
    text-decoration: underline;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-submit--primary {
    background: var(--lbx-azul);
    border-color: var(--lbx-azul);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(20, 23, 26, 0.3);
}

.btn-submit--primary:hover {
    background: var(--lbx-azul-escuro);
    border-color: var(--lbx-azul-escuro);
    box-shadow: 0 6px 20px rgba(20, 23, 26, 0.4);
    transform: translateY(-1px);
}

.btn-submit--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(20, 23, 26, 0.3);
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.4s ease-in-out;
}

.alert--error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@media (max-width: 1024px) {
    .login-showcase {
        padding: 2rem 1.5rem;
    }

    .showcase-title {
        font-size: 1.5rem;
    }

}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column-reverse;
    }

    .login-showcase {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .login-form-side {
        padding: 2rem 1.25rem;
        min-height: auto;
    }

    .login-card {
        padding: 2rem 1.5rem;
        box-shadow: none;
        border: none;
    }

    .showcase-title {
        font-size: 1.375rem;
    }

    .showcase-description {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .login-card__title {
        font-size: 1.25rem;
    }
}
