/* Melhorias visuais do card de login (sem alterar o fundo da página) */

.fc-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(13, 40, 71, 0.15);
    padding: 2.75rem 2.5rem 2.35rem;
}

.fc-login-card__title {
    margin: 0 0 2rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    color: #6b7280;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.fc-login-field {
    margin-bottom: 1.15rem;
}

.fc-login-field label {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.fc-login-input {
    display: block;
    width: 100%;
    height: 2.7rem;
    padding: 0.55rem 0.85rem;
    background: #f0f4f8;
    color: #1f2937;
    border: none;
    border-bottom: 1px solid #d5dee8;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fc-login-input:hover {
    background: #e8eef5;
}

.fc-login-input:focus {
    background: #e8eef5;
    border-bottom-color: var(--pe-primary, #2563eb);
}

.fc-login-input::placeholder {
    color: #9aa7b5;
}

.fc-login-input:-webkit-autofill,
.fc-login-input:-webkit-autofill:hover,
.fc-login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2937;
    caret-color: #1f2937;
    box-shadow: inset 0 0 0 9999px #f0f4f8;
    transition: background-color 99999s ease-out;
}

.fc-login-password {
    position: relative;
}

.fc-login-password .fc-login-input {
    padding-right: 2.75rem;
}

.fc-login-eye {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    background: transparent;
    color: #8a97a8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fc-login-eye:hover,
.fc-login-eye:focus {
    color: var(--pe-primary, #2563eb);
    background: transparent;
    outline: none;
}

.fc-login-eye svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.fc-login-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.fc-login-forgot {
    font-size: 0.72rem;
    font-weight: 400;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}

.fc-login-forgot:hover {
    color: var(--pe-primary, #2563eb);
    text-decoration: underline;
}

.fc-login-submit {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.78rem 1rem;
    background: var(--pe-primary, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
}

.fc-login-submit:hover,
.fc-login-submit:focus {
    background: var(--pe-primary-mid, #1d4ed8);
    color: #ffffff;
    outline: none;
}

.fc-login-submit:active {
    background: var(--pe-primary-dark, #1e40af);
}

.fc-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.45rem 0 1.1rem;
    color: #c0c7d0;
    font-size: 0.78rem;
    font-weight: 400;
}

.fc-login-divider::before,
.fc-login-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e9ee;
}

.fc-login-divider span {
    flex: 0 0 auto;
    color: #b0b8c2;
}

.fc-login-alt {
    display: block;
    width: 100%;
    padding: 0.72rem 1rem;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
}

.fc-login-alt:hover,
.fc-login-alt:focus {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
    text-decoration: none;
}

html.pe-dark .fc-login-card,
.pe-dark .fc-login-card {
    background: #161f2a;
    border-color: #2a3a4d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html.pe-dark .fc-login-card__title,
.pe-dark .fc-login-card__title,
html.pe-dark .fc-login-field label,
.pe-dark .fc-login-field label,
html.pe-dark .fc-login-forgot,
.pe-dark .fc-login-forgot {
    color: #9aa7b5;
}

html.pe-dark .fc-login-alt,
.pe-dark .fc-login-alt {
    background: #161f2a;
    color: #e5e7eb;
    border-color: #2a3a4d;
}

html.pe-dark .fc-login-alt:hover,
.pe-dark .fc-login-alt:hover {
    background: #1e2a3b;
    color: #ffffff;
    border-color: #3a4d63;
}

@media (max-width: 480px) {
    .fc-login-card {
        padding: 2rem 1.35rem 1.6rem;
    }

    .fc-login-card__title {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .fc-login-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}
