/* ═══════════════════════════════════════════════════════
   FIDEOGRAPH AUTH PAGES  v2
   Registration, Login, Forgot Password shared styles
   ═══════════════════════════════════════════════════════ */

.fgr-auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #F5F2ED;
}
.fgr-auth-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #E8E2D8;
    border-radius: 10px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
    position: relative;
}
.fgr-auth-card--narrow { max-width: 440px; }
.fgr-auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.fgr-auth-icon {
    margin: 0 auto 16px;
    display: block;
}
.fgr-auth-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1510;
    margin: 0 0 8px;
}
.fgr-auth-sub {
    font-size: 14px;
    color: #6B6454;
    margin: 0;
    line-height: 1.5;
}

/* ── Fields ──────────────────────────────────────────── */
.fgr-field { margin-bottom: 16px; }
.fgr-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fgr-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #9A9A9A;
}
.fgr-field input[type="text"],
.fgr-field input[type="email"],
.fgr-field input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E2D8;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1A1A1A;
    background: #FAF7F2;
    transition: border-color .15s;
    box-sizing: border-box;
}
.fgr-field input:focus {
    outline: none;
    border-color: #B8922A;
    box-shadow: 0 0 0 3px rgba(184,146,42,.1);
}
.fgr-field--row {
    display: flex;
    align-items: center;
}
.fgr-pass-wrap {
    position: relative;
}
.fgr-pass-wrap input { padding-right: 42px; }
.fgr-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9A9A9A;
    cursor: pointer;
    padding: 4px;
}

/* ── Radio / Checkbox groups ─────────────────────────── */
.fgr-radio-group,
.fgr-check-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.fgr-radio,
.fgr-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4A4A4A;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #F0EDE8;
    border-radius: 6px;
    transition: all .12s;
}
.fgr-radio:hover,
.fgr-check:hover {
    background: #FAF7F2;
    border-color: #E8E2D8;
}
.fgr-radio input:checked + *,
.fgr-check input:checked + * {
    font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────── */
.fgr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    border: none;
    text-decoration: none;
}
.fgr-btn--primary {
    background: #1A1510;
    color: #F6F0E0;
    width: 100%;
}
.fgr-btn--primary:hover { opacity: .88; }
.fgr-btn--outline {
    background: transparent;
    color: #1A1510;
    border: 1px solid #E8E2D8;
}
.fgr-btn--outline:hover { background: #FAF7F2; }
.fgr-btn--full { width: 100%; }
.fgr-btn--sm { padding: 8px 16px; font-size: 12px; }
.fgr-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.fgr-btn-row .fgr-btn { flex: 1; }
.fgr-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Error ───────────────────────────────────────────── */
.fgr-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    color: #991B1B;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.fgr-error[hidden] { display: none; }

/* ── Banners ─────────────────────────────────────────── */
.fgr-banner {
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}
.fgr-banner--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #14532D; }
.fgr-banner--warn    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.fgr-banner--error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* ── Links ───────────────────────────────────────────── */
.fgr-link {
    font-size: 13px;
    color: #1A6B5A;
    text-decoration: none;
    display: block;
    margin-top: 14px;
}
.fgr-link:hover { text-decoration: underline; }
.fgr-link--center { text-align: center; }

/* ── Divider ─────────────────────────────────────────── */
.fgr-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #C0C0C0;
    font-size: 12px;
}
.fgr-divider::before,
.fgr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8E2D8;
}

/* ── Confirmation ────────────────────────────────────── */
.fgr-confirm {
    text-align: center;
    padding: 16px 0;
}
.fgr-confirm svg { margin: 0 auto 16px; display: block; }
.fgr-confirm h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #1A1510;
    margin: 0 0 10px;
}
.fgr-confirm p {
    font-size: 14px;
    color: #6B6454;
    line-height: 1.6;
    margin: 0 0 20px;
}
.fgr-confirm-text {
    font-size: 14px;
    color: #4A4A4A;
    line-height: 1.6;
    text-align: center;
    padding: 20px 0;
}

/* ── Step visibility ─────────────────────────────────── */
.fgr-step[hidden] { display: none; }

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 560px) {
    .fgr-auth-card {
        padding: 28px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .fgr-auth-wrap { padding: 24px 0; }
}
