/* ════════════════════════════════════════════════════════
   Wonderguide — Auth CSS (connexion + inscription)
   ════════════════════════════════════════════════════════ */

:root {
    --wg-navy:  #00133B;
    --wg-navy2: #0D2252;
    --wg-beige: #D7CAAF;
    --wg-bg:    #F5F3EE;
    --wg-white: #FFFFFF;
    --wg-bdr:   rgba(0,19,59,.10);
    --wg-bdr2:  rgba(0,19,59,.20);
    --wg-muted: rgba(0,19,59,.45);
    --wg-error: #DC2626;
    --wg-font:  'Space Grotesk', system-ui, sans-serif;
    --wg-ease:  cubic-bezier(.16,1,.3,1);
    --wg-r:     12px;
    --wg-sh:    0 4px 24px rgba(0,19,59,.08);
}

/* ── Layout ─────────────────────────────────────────── */
.wg-auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
    background: var(--wg-bg);
    font-family: var(--wg-font);
}

/* ── Plan summary (inscription) ─────────────────────── */
.wg-plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--wg-white);
    border: 1.5px solid var(--wg-bdr2);
    border-radius: var(--wg-r);
    padding: 14px 20px;
    font-size: 14px;
    color: var(--wg-navy);
    width: 100%;
    max-width: 440px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.wg-plan-edit {
    font-size: 12px;
    color: var(--wg-muted);
    text-decoration: underline;
    white-space: nowrap;
}

/* ── Card ───────────────────────────────────────────── */
.wg-auth-card {
    background: var(--wg-white);
    border: 1.5px solid var(--wg-bdr2);
    border-radius: var(--wg-r);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--wg-sh);
    box-sizing: border-box;
}

.wg-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.wg-auth-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--wg-navy) !important;
    letter-spacing: -.02em !important;
    margin: 0 0 28px !important;
    text-align: center !important;
}

/* ── Social button ───────────────────────────────────── */
.wg-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: var(--wg-bg);
    border: 1.5px solid var(--wg-bdr2);
    border-radius: 10px;
    font-family: var(--wg-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--wg-navy);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 140ms, border-color 140ms;
    box-sizing: border-box;
}
.wg-social-btn:hover {
    background: #EEEAE3;
    border-color: var(--wg-bdr2);
    color: var(--wg-navy);
}

/* ── Divider ─────────────────────────────────────────── */
.wg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--wg-muted);
    font-size: 12px;
}
.wg-divider::before,
.wg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wg-bdr2);
}

/* ── Form ────────────────────────────────────────────── */
.wg-form-group { margin-bottom: 18px; }

.wg-form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--wg-muted);
    margin-bottom: 7px;
}
.wg-forgot {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--wg-muted);
    text-decoration: underline;
}

.wg-form-input {
    width: 100%;
    padding: 13px 16px;
    background: #FAFAF8;
    border: 1.5px solid var(--wg-bdr2);
    border-radius: 10px;
    font-family: var(--wg-font);
    font-size: 14px;
    color: var(--wg-navy);
    outline: none;
    transition: border-color 140ms, box-shadow 140ms, background 140ms;
    box-sizing: border-box;
}
.wg-form-input:focus {
    background: var(--wg-white);
    border-color: var(--wg-navy);
    box-shadow: 0 0 0 3px rgba(0,19,59,.06);
}
.wg-form-input::placeholder { color: rgba(0,19,59,.28); }

/* ── Password strength ───────────────────────────────── */
.wg-password-strength {
    margin-top: 6px;
    height: 3px;
    border-radius: 2px;
    background: var(--wg-bdr2);
    overflow: hidden;
    transition: all 200ms;
}
.wg-password-strength::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 200ms var(--wg-ease), background 200ms;
}
.wg-pw-0::after { width: 5%;  background: var(--wg-error); }
.wg-pw-1::after { width: 25%; background: var(--wg-error); }
.wg-pw-2::after { width: 50%; background: #F59E0B; }
.wg-pw-3::after { width: 75%; background: #10B981; }
.wg-pw-4::after, .wg-pw-5::after { width: 100%; background: #059669; }

/* ── Error ───────────────────────────────────────────── */
.wg-form-error {
    background: rgba(220,38,38,.07);
    border: 1.5px solid rgba(220,38,38,.25);
    color: var(--wg-error);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 18px;
}
.wg-form-error a { color: inherit; font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────── */
.wg-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wg-navy);
    color: var(--wg-white) !important;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-family: var(--wg-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 140ms var(--wg-ease), transform 140ms;
    letter-spacing: -.01em;
    box-shadow: 0 2px 10px rgba(0,19,59,.18);
}
.wg-btn-primary:hover { background: var(--wg-navy2); transform: translateY(-1px); }
.wg-btn-primary:active { transform: translateY(0); }
.wg-btn-primary:disabled { opacity: .55; pointer-events: none; }
.wg-btn-primary.wg-full { width: 100%; }

/* ── Footer links ────────────────────────────────────── */
.wg-auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--wg-muted);
    margin-top: 20px;
}
.wg-auth-switch a { color: var(--wg-navy); font-weight: 600; }
.wg-legal {
    font-size: 11px;
    color: var(--wg-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}
.wg-legal a { color: var(--wg-muted); }

/* ── Loading state ───────────────────────────────────── */
.wg-btn-primary.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.wg-btn-primary.is-loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wg-spin .6s linear infinite;
}
@keyframes wg-spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    .wg-auth-card { padding: 28px 20px; }
    .wg-auth-title { font-size: 20px !important; }
}
