/* ============================================================
   AUTH PAGES — Register & Login — Premium Mobile-First
   EFCOL Loja — Designer Web Studio
   ============================================================ */

/* ── Página base ─────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #fff5f5 0%, #fff 60%, #fafafa 100%);
    padding: 2rem 0 3.5rem;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 12px 55px rgba(178, 31, 42, 0.13), 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* ── Cabeçalho do card ───────────────────────────────────── */
.auth-card-header {
    background: linear-gradient(135deg, #8a1520 0%, #b21f2a 45%, #d31f1f 100%);
    padding: 1.85rem 1.75rem;
    position: relative;
    overflow: hidden;
}
.auth-card-header::before,
.auth-card-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.auth-card-header::before { width: 220px; height: 220px; top: -90px; right: -70px; }
.auth-card-header::after  { width: 130px; height: 130px; bottom: -55px; right: 50px; }

.auth-card-header h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    position: relative;
    z-index: 1;
}
.auth-card-header p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    margin: 0;
    position: relative;
    z-index: 1;
}
.auth-card-header .auth-logo-wrap {
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.auth-card-header .auth-logo-wrap img {
    width: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* ── Corpo do card ───────────────────────────────────────── */
.auth-card-body {
    padding: 0;
}

/* ── Aviso para estrangeiros ─────────────────────────────── */
.alert-intl {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border-left: 4px solid #f6b964;
    padding: 1rem 1.1rem;
}
.alert-intl .alert-intl__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7a5500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}
.alert-intl .alert-intl__title i { color: #e09b30; font-size: 1rem; }
.alert-intl p {
    font-size: 0.81rem;
    color: #6b4a00;
    margin: 0;
    line-height: 1.55;
}

/* ── Seções internas do formulário ───────────────────────── */
.form-section {
    padding: 1.5rem 1.75rem 0;
}
.form-section__label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #b21f2a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid rgba(178, 31, 42, 0.1);
}

/* ── Campo individual ────────────────────────────────────── */
.field-group { margin-bottom: 1rem; }
.field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.3rem;
    display: block;
}
.field-label .req { color: #b21f2a; }

/* ── Wrapper com ícone ───────────────────────────────────── */
.field-input-wrap { position: relative; }
.field-input-wrap .fi {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}
.field-input-wrap:focus-within .fi { color: #b21f2a; }

.field-input-wrap .form-control,
.field-input-wrap .input-group .form-control {
    height: 50px;
    border-radius: 10px !important;
    border: 1.5px solid #e2e2e2;
    padding-left: 2.6rem;
    font-size: 0.92rem;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field-input-wrap .form-control:focus,
.field-input-wrap .input-group .form-control:focus {
    border-color: #b21f2a;
    box-shadow: 0 0 0 3px rgba(178, 31, 42, 0.1);
    background: #fff;
    outline: none;
}

/* Campos sem ícone (UF) */
.field-input-wrap.no-icon .form-control { padding-left: 0.9rem; }

/* ── Botão mostrar/ocultar senha ─────────────────────────── */
.field-input-wrap .input-group .form-control { border-right: none !important; }
.btn-toggle-pass {
    background: #fafafa;
    border: 1.5px solid #e2e2e2;
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    color: #aaa;
    padding: 0 0.9rem;
    height: 50px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
}
.btn-toggle-pass:hover,
.btn-toggle-pass:focus { color: #b21f2a; background: #fff3f3; outline: none; }
.field-input-wrap:focus-within .btn-toggle-pass { border-color: #b21f2a; }

/* ── Mensagem de erro inline ─────────────────────────────── */
.field-errmsg {
    font-size: 0.74rem;
    color: #b21f2a;
    min-height: 1.1rem;
    margin-top: 0.2rem;
    display: block;
}

/* ── Combo DDI + Telefone ────────────────────────────────── */
.phone-combo { display: flex; gap: 0.5rem; align-items: flex-start; }
.phone-combo .select-ddi {
    flex: 0 0 105px;
    height: 50px;
    border-radius: 10px;
    border: 1.5px solid #e2e2e2;
    padding: 0 0.5rem;
    font-size: 0.82rem;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}
.phone-combo .select-ddi:focus {
    border-color: #b21f2a;
    box-shadow: 0 0 0 3px rgba(178, 31, 42, 0.1);
    outline: none;
}
.phone-combo .field-input-wrap { flex: 1; }
.phone-combo .field-input-wrap .form-control { padding-left: 0.9rem; }

/* ── Hint CEP ────────────────────────────────────────────── */
.cep-hint {
    font-size: 0.72rem;
    color: #999;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Divisor entre seções ────────────────────────────────── */
.form-section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(178, 31, 42, 0.12), transparent);
    margin: 1rem 1.75rem 0;
}

/* ── Botão principal de ação ─────────────────────────────── */
.btn-auth-action {
    display: block;
    width: 100%;
    height: 54px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d31f1f 0%, #b21f2a 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(178, 31, 42, 0.32);
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 54px;
    text-align: center;
}
.btn-auth-action:hover {
    background: linear-gradient(135deg, #b21f2a 0%, #8a1520 100%);
    box-shadow: 0 8px 24px rgba(178, 31, 42, 0.42);
    transform: translateY(-1px);
}
.btn-auth-action:active { transform: translateY(0); }

/* ── Botão de ação wrap (padding) ────────────────────────── */
.auth-action-wrap {
    padding: 1.4rem 1.75rem 0.75rem;
}

/* ── Footer do card ──────────────────────────────────────── */
.auth-card-footer {
    padding: 1.1rem 1.75rem 1.85rem;
    text-align: center;
    border-top: 1px solid #f5f5f5;
}
.auth-card-footer a {
    font-size: 0.875rem;
    color: #888;
    text-decoration: none;
}
.auth-card-footer a strong { color: #b21f2a; }
.auth-card-footer a:hover { color: #b21f2a; }
.auth-card-footer .divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: #ccc;
    font-size: 0.75rem;
}
.auth-card-footer .divider::before,
.auth-card-footer .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ── Link de recuperação de senha ────────────────────────── */
.auth-recover-link {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}
.auth-recover-link:hover { color: #b21f2a; }

/* ── Responsivo mobile ───────────────────────────────────── */
@media (max-width: 575px) {
    .auth-page {
        padding: 0 0 2.5rem;
        background: #fff;
    }
    .auth-card {
        border-radius: 0;
        box-shadow: none;
    }
    .form-section {
        padding: 1.25rem 1rem 0;
    }
    .form-section-divider {
        margin: 1rem 1rem 0;
    }
    .auth-card-footer {
        padding: 1rem 1rem 1.5rem;
    }
    .auth-action-wrap {
        padding: 1.25rem 1rem 0.5rem;
    }
    .phone-combo .select-ddi {
        flex: 0 0 95px;
    }
}
