/* Pages de connexion (04/12/2026) : espace client et équipe. Deux colonnes, bouton Google officiel, mode sombre.
   Reprend les variables de style.css et de theme-dark.css (mêmes couleurs que le site). */
body.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.auth-page .site-header .header-inner { gap: 1rem; }
.auth-actions { display: flex; align-items: center; gap: .5rem; }

.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem 3rem; }
.auth-shell { width: 100%; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 1.5rem; align-items: stretch; }

/* Colonne de présentation */
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; border-radius: 24px; color: #eef3e6;
  background: radial-gradient(120% 80% at 100% 0, rgba(198, 244, 50, .16), transparent 55%), radial-gradient(90% 70% at 0 100%, rgba(43, 114, 73, .55), transparent 60%), #0f2a1f; }
.auth-aside::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(198, 244, 50, .18); box-shadow: 0 0 0 40px rgba(198, 244, 50, .04), 0 0 0 80px rgba(198, 244, 50, .025); pointer-events: none; }
.auth-aside-kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c6f432; }
.auth-aside-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c6f432; box-shadow: 0 0 0 4px rgba(198, 244, 50, .18); }
.auth-aside h2 { margin: .75rem 0 .5rem; font-family: var(--font-serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.auth-aside > div > p { margin: 0; color: #b9c8bd; font-size: .9375rem; line-height: 1.6; max-width: 38ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .85rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: #d8e3da; }
.auth-points b { display: block; color: #fff; font-weight: 600; }
.auth-points svg { flex: none; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: rgba(198, 244, 50, .12); color: #c6f432; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-secure { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: #9fb2a5; }
.auth-secure svg { width: 16px; height: 16px; fill: none; stroke: #c6f432; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Carte du formulaire */
.auth-card { padding: 2.25rem; border-radius: 24px; background: var(--paper-card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 42, 31, .04), 0 24px 48px -28px rgba(15, 42, 31, .28); }
.auth-head { margin-bottom: 1.5rem; }
.auth-head .eyebrow { display: inline-block; color: var(--accent); font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.auth-head h1 { margin: .4rem 0 .35rem; font-family: var(--font-serif); font-size: 1.85rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.auth-head p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.auth-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; font-size: .875rem; line-height: 1.5; margin-bottom: 1.25rem; border: 1.5px solid; }
.auth-alert svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-alert.is-error { background: #fef2f2; border-color: #f87171; color: #991b1b; }
.auth-alert.is-ok { background: #f0fdf4; border-color: #4ade80; color: #166534; }

/* Bouton Google : couleurs et logo conformes aux consignes de Google (thème clair et sombre) */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 50px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid #747775; background: #fff; color: #1f1f1f; font-family: "Inter", Roboto, Arial, sans-serif; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60, 64, 67, .25); }
.btn-google:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.auth-sep { display: flex; align-items: center; gap: .85rem; margin: 1.35rem 0; font-size: .8125rem; color: var(--muted); }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-card .form-group { margin-bottom: 1.1rem; }
.auth-card .form-input { min-height: 50px; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-card .form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.auth-label-row .form-label { margin-bottom: 0; }
.auth-link { color: var(--accent); font-size: .8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: .35rem 0; }
.auth-pass { position: relative; }
.auth-pass .form-input { padding-right: 3.25rem; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.auth-eye:hover { color: var(--ink); background: var(--paper-2); }
.auth-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-eye .eye-off, .auth-eye[aria-pressed="true"] .eye-on { display: none; }
.auth-eye[aria-pressed="true"] .eye-off { display: block; }
.auth-submit { width: 100%; min-height: 52px; margin-top: .6rem; border-radius: 999px; }
.auth-foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; font-size: .875rem; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: .4rem 0; }
.auth-legal { padding: 1.25rem; text-align: center; font-size: .8125rem; color: var(--muted); }

/* Mode sombre */
:root[data-theme="dark"] .auth-aside { background: radial-gradient(120% 80% at 100% 0, rgba(198, 244, 50, .1), transparent 55%), radial-gradient(90% 70% at 0 100%, rgba(43, 114, 73, .35), transparent 60%), #0e1d16; border: 1px solid var(--line); }
:root[data-theme="dark"] .auth-card { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .auth-card .form-input { background: var(--surface); }
:root[data-theme="dark"] .btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .btn-google:hover { background: #1e1f20; box-shadow: none; }
:root[data-theme="dark"] .auth-alert.is-error { background: #2a1414; border-color: #b45454; color: #ffb4ab; }
:root[data-theme="dark"] .auth-alert.is-ok { background: #10261a; border-color: #3f9a62; color: #a8e6bd; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .auth-aside { order: 2; padding: 1.75rem; gap: 1.25rem; }
  .auth-aside h2 { font-size: 1.4rem; }
  .auth-main { padding: 1.5rem 1rem 2.5rem; }
}
@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
  .auth-head h1 { font-size: 1.55rem; }
  .auth-actions .btn { padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-google, .auth-card .form-input { transition: none; }
}
