/* ══════════════════════════════════════════════════════════
   PentCommunity — Auth Pages (Connexion & Inscription)
   Design Direction: Luxury Editorial Dark
══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
    --c-blue:        #357abd;
    --c-blue-dark:   #00224e;
    --c-orange:      #fe9b44;
    --c-orange-dark: #e18009;
    --c-white:       #ffffff;
    --c-off:         #edeae3;
    --c-muted:       rgba(237, 234, 227, 0.45);
    --c-glass:       rgba(255,255,255,0.03);
    --c-border:      rgba(53, 122, 189, 0.15);
    --c-border-h:    rgba(53, 122, 189, 0.38);
    --c-surface:     #0a1428;
    --c-red:         #dc4a4a;

    --f-display: 'Cormorant Garamond', Georgia, serif;
    --f-body:    'DM Sans', system-ui, sans-serif;
    --f-label:   'Bebas Neue', sans-serif;

    --nav-h: 68px;
    --r:     14px;
    --r-sm:  8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    background: #000d1f;
    color: var(--c-off);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* Grain overlay */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9998; opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center; padding: 0 2.5rem;
    background: rgba(0, 10, 30, 0.65);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border-bottom: 1px solid var(--c-border);
    transition: background 0.4s;
}
.nav.scrolled { background: rgba(0, 8, 22, 0.92); }
.nav-inner {
    display: flex; align-items: center;
    width: 100%; max-width: 1280px; margin: 0 auto; gap: 1.5rem;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.55rem;
    font-family: var(--f-display); font-size: 1.25rem; font-weight: 600;
    color: var(--c-white); white-space: nowrap; flex-shrink: 0;
}
.nav-brand img { width: 30px; height: 27px; object-fit: contain; }
.nav-brand .accent { color: var(--c-orange); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links > li > a {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
    color: rgba(237,234,227,0.6); padding: 0.38rem 0.75rem; border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--c-white); background: rgba(53,122,189,0.12); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.nbtn {
    font-family: var(--f-body); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 0.42rem 1.05rem; border-radius: var(--r-sm);
    cursor: pointer; transition: all 0.22s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.nbtn-ghost { background: transparent; border: 1px solid rgba(53,122,189,0.3); color: rgba(237,234,227,0.75); }
.nbtn-ghost:hover { border-color: var(--c-blue); color: var(--c-white); background: rgba(53,122,189,0.08); }
.nbtn-primary { background: var(--c-orange); color: var(--c-blue-dark); border: 1px solid transparent; font-weight: 700; }
.nbtn-primary:hover { background: var(--c-orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(254,155,68,0.3); }

.nav-toggle {
    display: none; background: transparent; border: 1px solid rgba(255,255,255,0.12);
    color: var(--c-white); width: 36px; height: 36px; border-radius: var(--r-sm);
    cursor: pointer; align-items: center; justify-content: center;
    font-size: 0.85rem; margin-left: auto; transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(53,122,189,0.15); }

/* Mobile drawer */
.nav-drawer {
    display: none; position: fixed; top: var(--nav-h); inset-inline: 0;
    background: rgba(0, 10, 26, 0.98); backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--c-border); padding: 1rem 1.5rem 1.5rem;
    z-index: 999; flex-direction: column; gap: 0.25rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(237,234,227,0.7); padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(53,122,189,0.08);
    display: flex; align-items: center; gap: 0.6rem; transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--c-white); }
.nav-drawer a i { color: var(--c-orange); width: 14px; font-size: 0.72rem; }
.nav-drawer-divider { height: 1px; background: rgba(53,122,189,0.12); margin: 0.5rem 0; }
.nav-drawer-btns { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   AUTH HERO
══════════════════════════════════════════════ */
.auth-hero {
    position: relative;
    padding: calc(var(--nav-h) + 4rem) 2.5rem 3.5rem;
    text-align: center;
    overflow: hidden;
}
.auth-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 80%, rgba(53,122,189,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 80% 10%, rgba(254,155,68,0.06) 0%, transparent 50%),
        linear-gradient(170deg, #000d1f 0%, #001128 55%, #000819 100%);
}
.auth-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to bottom, transparent, #000d1f);
    pointer-events: none;
}
.auth-hero-content { position: relative; z-index: 2; }
.auth-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.26em;
    color: var(--c-orange); border: 1px solid rgba(254,155,68,0.2);
    padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 1.25rem;
    background: rgba(254,155,68,0.04);
}
.auth-hero-title {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300; line-height: 1; color: var(--c-white);
    margin-bottom: 0.75rem;
}
.auth-hero-sub {
    font-size: 0.88rem; color: var(--c-muted); line-height: 1.6;
    max-width: 420px; margin: 0 auto;
}

/* ══════════════════════════════════════════════
   TRANSLATE BAR
══════════════════════════════════════════════ */
.translate-bar {
    background: rgba(0,8,20,0.5); border-bottom: 1px solid var(--c-border);
    padding: 0.55rem 2.5rem; display: flex; align-items: center;
    justify-content: flex-end; gap: 0.7rem;
}
.translate-bar-label {
    font-family: var(--f-label); font-size: 0.68rem;
    letter-spacing: 0.18em; color: var(--c-muted);
}

/* ══════════════════════════════════════════════
   AUTH FORM CARD
══════════════════════════════════════════════ */
.auth-container {
    max-width: 480px; margin: 0 auto;
    padding: 0 2.5rem 5rem;
}
.auth-container.wide { max-width: 560px; }

.auth-card {
    background: var(--c-glass);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.3s;
}
.auth-card:hover { border-color: var(--c-border-h); }

.auth-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--c-border);
    background: rgba(255,255,255,0.01);
}
.auth-card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(254,155,68,0.12), rgba(254,155,68,0.03));
    border: 1px solid rgba(254,155,68,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-orange); font-size: 1rem; flex-shrink: 0;
}
.auth-card-title {
    font-family: var(--f-display);
    font-size: 1.3rem; font-weight: 600; color: var(--c-white);
}

.auth-card-body { padding: 1.75rem; }

.auth-card-footer {
    padding: 1.1rem 1.75rem;
    border-top: 1px solid var(--c-border);
    background: rgba(255,255,255,0.01);
    font-size: 0.8rem; color: var(--c-muted);
    text-align: center;
}
.auth-card-footer a {
    color: var(--c-orange); font-weight: 600;
    transition: color 0.2s;
}
.auth-card-footer a:hover { color: var(--c-orange-dark); }

/* ── Section divider ── */
.auth-section {
    display: flex; align-items: center; gap: 0.7rem;
    margin: 2rem 0 1.25rem;
    font-family: var(--f-label); font-size: 0.65rem;
    letter-spacing: 0.2em; color: var(--c-muted);
}
.auth-section::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, var(--c-border), transparent);
}
.auth-section i { color: var(--c-orange); font-size: 0.62rem; }
.auth-section:first-child { margin-top: 0; }

/* ── Fields ── */
.auth-field { margin-bottom: 1.1rem; }
.auth-field:last-child { margin-bottom: 0; }
.auth-field-label {
    display: block;
    font-family: var(--f-label); font-size: 0.65rem;
    letter-spacing: 0.16em; color: var(--c-muted);
    margin-bottom: 6px;
}
.auth-field-label .req { color: var(--c-red); margin-left: 2px; }

.auth-input {
    font-family: var(--f-body); font-size: 0.88rem;
    color: var(--c-off);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 0.7rem 0.9rem;
    width: 100%; outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.auth-input:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(53,122,189,0.12);
    background: rgba(53,122,189,0.04);
}
.auth-input::placeholder { color: rgba(237,234,227,0.2); }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(0.5) hue-rotate(180deg);
    cursor: pointer;
}

.auth-select {
    font-family: var(--f-body); font-size: 0.88rem;
    color: var(--c-off);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 0.7rem 0.9rem;
    width: 100%; outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(237,234,227,0.35)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.auth-select:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(53,122,189,0.12);
    background-color: rgba(53,122,189,0.04);
}
.auth-select option { background: #0a1428; color: var(--c-off); }

/* Row grid */
.auth-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* Radio buttons */
.auth-radios { display: flex; gap: 1.25rem; margin-bottom: 1.25rem; }
.auth-radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.auth-radio input[type="radio"] {
    appearance: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--c-border); background: transparent;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.auth-radio input[type="radio"]:checked {
    border-color: var(--c-orange);
    background: var(--c-orange);
    box-shadow: inset 0 0 0 3px #000d1f;
}
.auth-radio span { font-size: 0.84rem; color: var(--c-off); }

/* Checkbox */
.auth-check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.5rem 0; }
.auth-check input[type="checkbox"] {
    appearance: none; width: 18px; height: 18px; border-radius: 4px;
    border: 2px solid var(--c-border); background: transparent;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0; margin-top: 2px;
}
.auth-check input[type="checkbox"]:checked {
    border-color: var(--c-orange); background: var(--c-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3 3 7-7' stroke='%2300224e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.auth-check label { font-size: 0.82rem; color: var(--c-muted); line-height: 1.5; cursor: pointer; }

/* Required indicator */
.req-hint {
    font-size: 0.76rem; color: var(--c-muted); margin-bottom: 1.5rem;
}
.req-hint .req { color: var(--c-red); }

/* ── Alert ── */
.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.82rem;
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.auth-alert-error {
    background: rgba(220,74,74,0.06);
    border: 1px solid rgba(220,74,74,0.2);
    color: rgba(220,74,74,0.85);
}
.auth-alert i { font-size: 0.85rem; flex-shrink: 0; }

/* ── Submit ── */
.auth-submit {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%;
    font-family: var(--f-body); font-size: 0.84rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    background: var(--c-orange); color: var(--c-blue-dark);
    border: 1px solid transparent; border-radius: var(--r-sm);
    padding: 0.75rem 1.5rem; cursor: pointer;
    transition: all 0.22s;
}
.auth-submit:hover {
    background: var(--c-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(254,155,68,0.3);
}
.auth-submit:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Forgot password */
.auth-forgot {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; color: var(--c-red);
    font-weight: 500; transition: opacity 0.2s;
}
.auth-forgot:hover { opacity: 0.75; }

/* RGPD */
.auth-rgpd {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.015);
    font-size: 0.74rem; color: var(--c-muted);
    line-height: 1.65; font-style: italic;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
    background: rgba(0,6,16,0.7); border-top: 1px solid var(--c-border);
    padding: 3.5rem 2.5rem 2rem;
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-brand-name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--c-white); }
.footer-brand-sub { font-size: 0.76rem; color: var(--c-muted); }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col-head { font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--c-orange); margin-bottom: 0.15rem; }
.footer-col a { font-size: 0.8rem; color: var(--c-muted); display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom {
    max-width: 1280px; margin: 2.5rem auto 0;
    padding-top: 1.5rem; border-top: 1px solid rgba(53,122,189,0.07);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.7rem; color: rgba(237,234,227,0.18);
    letter-spacing: 0.05em; flex-wrap: wrap; gap: 0.5rem;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 980px) {
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
    .auth-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
    .auth-container { padding: 0 1.25rem 4rem; }
    .auth-card-body { padding: 1.25rem; }
    .auth-card-header { padding: 1.25rem; }
    .auth-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-cols { gap: 2rem; }
}
