﻿/* ─────────────────────────────────────────
   auth.css — Login, Register, EsqueciSenha
   ───────────────────────────────────────── */

.auth-wrap {
    min-height: calc(100vh - var(--nav-h, 62px) - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,.07);
}

/* ── Logo ── */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo-box {
    width: 38px;
    height: 38px;
    background: var(--ink, #0f1111);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
}

.auth-logo-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink, #0f1111);
    letter-spacing: -.02em;
}

/* ── Ícone central ── */
.auth-icon {
    width: 56px;
    height: 56px;
    background: rgba(0,113,220,.10);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--blue, #0071dc);
    margin: 0 auto 20px;
}

/* ── Títulos ── */
.auth-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink, #0f1111);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--grey-400, #9ca3af);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Validation ── */
.validation-summary {
    background: rgba(220,38,38,.07);
    border: 1px solid rgba(220,38,38,.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 20px;
}

    .validation-summary ul {
        padding-left: 16px;
    }

/* ── Form fields ── */
.form-field {
    margin-bottom: 16px;
}

.form-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600, #4b5563);
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

    .input-wrap i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--grey-400, #9ca3af);
        font-size: 13px;
        pointer-events: none;
    }

.form-field-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 11px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink, #0f1111);
    background: var(--grey-50, #f9fafb);
    outline: none;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

    .form-field-input:focus {
        border-color: var(--blue, #0071dc);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0,113,220,.12);
    }

.field-error {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 5px;
    display: block;
}

/* ── Checkbox ── */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

    .checkbox-field input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid var(--grey-200, #e5e7eb);
        border-radius: 6px;
        flex-shrink: 0;
        cursor: pointer;
        outline: none;
        transition: border-color 140ms ease, background 140ms ease;
        position: relative;
    }

        .checkbox-field input[type="checkbox"]:checked {
            background: var(--blue, #0071dc);
            border-color: var(--blue, #0071dc);
        }

            .checkbox-field input[type="checkbox"]:checked::before {
                content: "\f00c";
                font-family: "Font Awesome 6 Free";
                font-weight: 900;
                color: #fff;
                font-size: 11px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

        .checkbox-field input[type="checkbox"]:focus {
            box-shadow: 0 0 0 3px rgba(0,113,220,.12);
        }

    .checkbox-field label {
        font-size: 13.5px;
        color: var(--grey-600, #4b5563);
        cursor: pointer;
        line-height: 1.5;
    }

/* ── Botão principal ── */
.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--blue, #0071dc);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

    .btn-submit:hover {
        background: var(--blue-dark, #0055a5);
        box-shadow: 0 4px 16px rgba(0,113,220,.35);
        transform: translateY(-1px);
    }

/* ── Botões secundários ── */
.auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    color: var(--grey-600, #4b5563);
    text-decoration: none;
    background: #fff;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

    .btn-ghost:hover {
        border-color: var(--ink, #0f1111);
        color: var(--ink, #0f1111);
        background: var(--grey-50, #f9fafb);
    }

/* ── Divisor ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--grey-200, #e5e7eb);
    }

/* ── Rodapé ── */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--grey-400, #9ca3af);
}

    .auth-footer a {
        color: var(--blue, #0071dc);
        font-weight: 600;
        text-decoration: none;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }
}
