@import url('/assets/landing/fonts.css');

/* Full-page authentication. The library remains unmounted before sign-in. */
.auth-pending > * { visibility: hidden; }
.auth-pending::before { content: 'Ouverture de votre espace…'; position: fixed; inset: 0; display: grid; place-items: center; font: 15px/1.5 'DM Sans', sans-serif; color: #607069; background: #f5f5ef; }
.auth-page { --auth-ink: #19372e; --auth-muted: #607069; --auth-green: #205540; --auth-paper: #f5f5ef; --auth-line: #d9e0d7; --auth-lime: #d9e9ae; margin: 0; min-height: 100dvh; padding: 32px; display: grid; place-items: center; background: var(--auth-paper); color: var(--auth-ink); font: 16px/1.6 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
.auth-page a { text-underline-offset: 3px; }
.auth-page :focus-visible { outline: 3px solid #4c805e; outline-offset: 5px; }
.auth-page button { font: inherit; }
.auth-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; padding: 10px; border: 1px solid #e4e8de; border-radius: 28px; background: #fff; box-shadow: 0 18px 70px #19372e08; }
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 32px 36px; border-radius: 20px; background: var(--auth-green); color: #fff; isolation: isolate; }
.auth-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-story::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#153f308c,transparent 23%,transparent 50%,#153f30d9 83%,#153f30f5); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; align-self: start; min-height: 44px; color: #fff; font: 700 24px/1.3 'Manrope', sans-serif; letter-spacing: -.9px; text-decoration: none; }
.auth-brand img { border: 1px solid #ffffff40; border-radius: 11px; }
.auth-brand span { margin-left: -9px; color: var(--auth-lime); }
.auth-story-copy { margin-top: auto; padding-top: 280px; }
.auth-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.auth-story .auth-eyebrow { color: #e6eee5; }
.auth-story h2 { margin: 12px 0 14px; font: 600 clamp(34px, 3.7vw, 46px)/1.16 'Manrope', sans-serif; letter-spacing: -.055em; }
.auth-story h2 span { color: var(--auth-lime); }
.auth-story-copy > p:last-child { font-size: 14px; line-height: 1.65; color: #e0e9e1; }
.auth-access { display: flex; flex-direction: column; min-width: 0; padding: 22px 45px 16px; }
.auth-back { display: inline-flex; align-items: center; align-self: start; gap: 8px; min-height: 44px; font-size: 12px; text-decoration: none; color: var(--auth-muted); }
.auth-back:hover { color: var(--auth-green); }
.auth-back svg { width: 16px; height: 16px; }
.auth-form { width: 100%; max-width: 350px; margin: auto; padding: 25px 0 28px; }
.auth-welcome-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid #dfe8db; border-radius: 14px; background: #f1f5e9; color: var(--auth-green); }
.auth-welcome-mark svg { width: 29px; height: 29px; fill: currentColor; stroke: none; }
.auth-form .auth-eyebrow { color: var(--auth-muted); margin-bottom: 12px; }
.auth-form h1 { font: 600 clamp(30px, 3.2vw, 39px)/1.2 'Manrope', sans-serif; letter-spacing: -.05em; margin-bottom: 18px; }
.auth-intro { color: var(--auth-muted); font-size: 15px; line-height: 1.7; max-width: 32ch; }
.auth-providers { width: 100%; margin-top: 30px; }
.auth-google-box { width: 100%; min-height: 44px; }
#auth-google { width: 100%; min-height: 44px; }
.auth-status { font-size: 13px; margin-top: 14px; line-height: 1.6; color: var(--auth-muted); }
.auth-status:empty { display: none; }
.auth-status.error { padding: 12px; border-radius: 9px; background: #fff2eb; color: #923d25; }
.auth-retry { margin-top: 12px; padding: 10px 22px; min-height: 44px; border: 1px solid var(--auth-green); border-radius: 10px; color: white; background: var(--auth-green); }
.auth-retry:hover { background: #193f30; }
.auth-new { font-size: 13px; line-height: 1.65; color: var(--auth-muted); margin-top: 22px; }
.auth-terms { font-size: 12px; line-height: 1.8; color: var(--auth-muted); margin-top: 26px; padding-top: 22px; border-top: 1px solid #e7ebe3; }
.auth-terms a { color: var(--auth-ink); }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center; font-size: 11px; color: var(--auth-muted); }
.auth-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--auth-ink); text-decoration: none; }
@media (max-width: 1000px) { .auth-page { padding: 24px; } .auth-story { padding: 28px; } .auth-access { padding-inline: 30px; } }
@media (max-width: 720px) {
  .auth-page { display: block; padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
  .auth-shell { min-height: calc(100dvh - 32px); grid-template-columns: 1fr; border-radius: 22px; padding: 0; overflow: hidden; }
  .auth-story { border-radius: 0; padding: 18px 24px; min-height: 160px; }
  .auth-brand { font-size: 21px; }.auth-brand img { width: 32px; height: 32px; }
  .auth-art { width: 56%; left: auto; object-position: center 37%; }
  .auth-story::after { background: linear-gradient(90deg,#205540 33%,#205540b3 56%,transparent 85%); }
  .auth-story-copy { padding: 16px 0 0; max-width: 65%; }.auth-story-copy .auth-eyebrow, .auth-story-copy > p:last-child { display: none; }
  .auth-story h2 { font-size: 25px; margin: 0; line-height: 1.25; }
  .auth-access { padding: 10px 26px 12px; }.auth-form { margin: 0 auto; padding: 16px 0 20px; }
  .auth-welcome-mark { display: none; }.auth-form h1 { font-size: 32px; margin-bottom: 14px; }
  .auth-form h1 br { display: none; }.auth-providers { margin-top: 25px; }.auth-footer { margin-top: auto; }
}
@media (max-width: 380px) { .auth-page { padding: 10px; }.auth-access, .auth-story { padding-inline: 20px; }.auth-story h2 { font-size: 23px; }.auth-desktop-break { display: none; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before { transition: none !important; } }
