/* styles/auth.css — pages de connexion / inscription / mot de passe
   Mise en page : includes/auth_layout.php. Polices, couleurs et
   .shop-container viennent de site_header.css (chargé avant). */

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--shop-bg);
    font-family: var(--site-font);
    color: var(--shop-ink);
    line-height: 1.5;
}
.auth-body *, .auth-body *::before, .auth-body *::after { box-sizing: border-box; }

/* ---------- En-tête allégé ---------- */
.auth-top { background: #fff; border-bottom: 1px solid var(--shop-line); }
.auth-top__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-top: 14px; padding-bottom: 14px;
}
.auth-top__logo img { height: 38px; width: auto; display: block; }
.auth-top .auth-top__back { font-size: 14px; font-weight: 500; color: var(--shop-text-2); text-decoration: none; }
.auth-top .auth-top__back:hover { color: var(--shop-ink); }

/* ---------- Corps ---------- */
.auth-main {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
}
.auth-shell {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 360px 1fr;
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .06);
}
.auth-shell--wide { max-width: 1080px; }

/* Panneau gauche */
.auth-aside {
    background: var(--shop-ink);
    color: #C9CBCF;
    padding: 40px 36px;
    display: flex; flex-direction: column; gap: 20px;
    position: relative;
}
.auth-aside::before {      /* liseré rouge, rappel du soulignement de menu */
    content: ""; position: absolute; left: 36px; top: 0; width: 48px; height: 3px;
    background: var(--site-red);
}
.auth-aside__eyebrow {
    font-family: var(--site-font-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: .12em; color: #FF6B6B;
}
.auth-aside h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.auth-aside__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.auth-aside__list li { position: relative; padding-left: 26px; }
.auth-aside__list li::before {
    content: ""; position: absolute; left: 2px; top: 5px;
    width: 10px; height: 5px;
    border-left: 2px solid #FF6B6B; border-bottom: 2px solid #FF6B6B;
    transform: rotate(-45deg);
}
.auth-aside__contact {
    margin-top: auto; padding-top: 20px; border-top: 1px solid #2E3136;
    display: flex; flex-direction: column; gap: 2px; font-size: 13px;
}
.auth-aside__contact span { color: #8B8E93; }
.auth-aside .auth-aside__contact a { color: #fff; text-decoration: none; }
.auth-aside .auth-aside__contact a:hover { text-decoration: underline; }

/* Carte formulaire */
.auth-card {
    padding: 44px 48px 36px;
    min-width: 0;
}
.auth-shell--wide .auth-card { padding-left: 56px; padding-right: 56px; }

.auth-title {
    font-size: 26px; font-weight: 600; letter-spacing: -.01em;
    margin: 0 0 6px; color: var(--shop-ink);
}
.auth-sub {
    font-size: 14px; color: var(--shop-muted);
    margin: 0 0 24px;
}
.auth-note { font-size: 13px; color: var(--shop-muted); margin: 0; }

/* Identifiant / e-mail mis en avant */
.email-display {
    font-family: var(--site-font-mono); font-size: 14px;
    background: var(--shop-bg); border: 1px solid var(--shop-line);
    border-radius: 6px; padding: 10px 14px; margin: 0 0 16px;
    color: var(--shop-ink); word-break: break-all;
}

/* Alertes */
.auth-alert {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid;
    border-left-width: 3px;
    font-size: 14px;
    margin-bottom: 20px;
}
.auth-alert ul { margin: 6px 0; padding-left: 20px; }
.auth-alert--error   { background: #FFF5F5; color: #8A0000; border-color: #F3C9C9; border-left-color: var(--site-red); }
.auth-alert--success { background: #F1F8F3; color: #1E5C34; border-color: #CFE6D6; border-left-color: #2E8B57; }

/* Formulaire */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-section {
    margin: 8px 0 -4px; padding-top: 16px; border-top: 1px solid var(--shop-line-2);
    font-family: var(--site-font-mono); font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em; color: var(--shop-muted);
}
.auth-form > .auth-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { font-size: 13px; font-weight: 500; color: var(--shop-text-2); }
.auth-field > span em { font-style: normal; color: var(--site-red); }
.auth-field input {
    height: 44px; padding: 0 12px;
    border: 1px solid #D6D6D2; border-radius: 6px;
    font-family: var(--site-font); font-size: 15px; color: var(--shop-ink);
    background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input:hover { border-color: #B9B9B4; }
.auth-field input:focus { border-color: var(--shop-ink); box-shadow: 0 0 0 3px rgba(22, 24, 27, .08); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--shop-text-2); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--site-red); }

.auth-body a { color: var(--site-red); }
.auth-row a, .auth-links a { text-decoration: none; font-weight: 500; font-size: 14px; }
.auth-row a:hover, .auth-links a:hover { text-decoration: underline; }

/* Boutons (même gabarit que .shop-btn) */
.auth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 24px;
    border: 1px solid transparent; border-radius: 6px;
    font-family: var(--site-font); font-size: 15px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-btn--primary { background: var(--site-red); color: #fff; }
.auth-btn--primary:hover:not(:disabled) { background: var(--site-red-dark); }
.auth-body a.auth-btn--outline,
.auth-btn--outline { background: #fff; border-color: #D6D6D2; color: var(--shop-ink); }
.auth-btn--outline:hover { border-color: var(--shop-ink); }

/* Liens bas de carte */
.auth-links {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
    margin-top: 24px; font-size: 14px; color: var(--shop-muted);
}

/* Séparateur « ou » + accès invité / création de compte */
.auth-or {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0 16px; font-size: 12px; color: var(--shop-muted);
    text-transform: uppercase; letter-spacing: .08em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--shop-line); }
.auth-alt { display: flex; flex-direction: column; gap: 10px; }
.auth-alt .auth-btn { width: 100%; }

.auth-guest { margin-top: 16px; text-align: center; font-size: 13px; color: var(--shop-muted); }
.auth-body .auth-guest a { color: var(--shop-text-2); font-weight: 500; text-decoration: none; }
.auth-body .auth-guest a:hover { color: var(--shop-ink); text-decoration: underline; }
.auth-guest small { display: block; margin-top: 2px; font-size: 12px; }

/* Pied de page */
.auth-foot { padding: 20px 24px 28px; text-align: center; font-size: 12px; color: var(--shop-muted); }
.auth-body .auth-foot a { color: var(--shop-muted); text-decoration: none; }
.auth-body .auth-foot a:hover { color: var(--shop-ink); text-decoration: underline; }

@media (max-width: 860px) {
    .auth-shell, .auth-shell--wide { grid-template-columns: 1fr; max-width: 560px; }
    .auth-aside { display: none; }
}
@media (max-width: 560px) {
    .auth-main { padding: 0; align-items: stretch; }
    .auth-shell { border: 0; border-radius: 0; box-shadow: none; }
    .auth-card, .auth-shell--wide .auth-card { padding: 32px 20px 28px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
    .auth-top .auth-top__back { font-size: 13px; }
    .auth-top__logo img { height: 32px; }
}

/* Compléments des styles propres aux pages (vérification e-mail, succès) */
.auth-field > span small { font-size: 12px; font-weight: 400; color: var(--shop-muted); }
.auth-body .code-inputs input { font-family: var(--site-font-mono); border-width: 1px; border-radius: 6px; }
.auth-body .code-inputs input:focus { box-shadow: 0 0 0 3px rgba(192, 0, 0, .12); }
.auth-body .resend-btn, .auth-body .redirect-cta { font-family: var(--site-font); font-weight: 500; }
.auth-body .success-title { font-weight: 600; letter-spacing: -.01em; }
.auth-card .auth-note + .auth-form, .auth-card .auth-note + .auth-alert { margin-top: 20px; }
