
:root {
  color-scheme: light;
  --auth-forest: #102f2a;
  --auth-deep: #0b2420;
  --auth-ink: #172d29;
  --auth-muted: #71817b;
  --auth-line: #e3e9e5;
  --auth-ground: #f5f7f4;
  --auth-paper: #fff;
  --auth-green: #24775c;
  --auth-green-light: #dff0e7;
  --auth-gold: #e7b55b;
  --auth-danger: #a7342c;
  --auth-shadow: 0 28px 90px rgba(18, 48, 40, .13);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--auth-ground); }
body.auth-page { min-height: 100vh; margin: 0; padding: clamp(12px, 2.5vw, 34px); color: var(--auth-ink); background: radial-gradient(circle at 12% 16%, rgba(220, 233, 224, .65), transparent 32%), radial-gradient(circle at 94% 88%, rgba(225, 235, 227, .7), transparent 28%), var(--auth-ground); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(51, 138, 105, .32); outline-offset: 2px; }
a { color: inherit; }

.auth-layout { width: min(1240px, 100%); min-height: min(820px, calc(100vh - 68px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr); overflow: hidden; border: 1px solid rgba(16, 47, 42, .07); border-radius: 28px; background: var(--auth-paper); box-shadow: var(--auth-shadow); }

.auth-story { position: relative; isolation: isolate; min-height: 720px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(32px, 4.2vw, 58px); color: #fff; background: linear-gradient(145deg, #153f35 0%, #102f2a 55%, #0b2622 100%); }
.auth-story::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .23; background-image: linear-gradient(rgba(219, 240, 226, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(219, 240, 226, .1) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(135deg, #000, transparent 82%); }
.auth-story::after { content: ""; position: absolute; z-index: -2; width: 540px; height: 540px; right: -235px; top: -200px; border: 1px solid rgba(220, 241, 226, .12); border-radius: 50%; box-shadow: 0 0 0 48px rgba(220, 241, 226, .025), 0 0 0 96px rgba(220, 241, 226, .02); }
.story-orbit { position: absolute; z-index: -1; border: 1px solid rgba(214, 235, 220, .12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 480px; height: 480px; right: -220px; bottom: -210px; }
.orbit-two { width: 360px; height: 360px; right: -160px; bottom: -150px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: white; text-decoration: none; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.6px; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 6px; border: 1px solid rgba(220, 241, 226, .32); border-radius: 9px; background: rgba(255,255,255,.08); }
.brand-mark i { display: block; width: 4px; border-radius: 2px 2px 1px 1px; background: #a5ddbd; }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-tag { margin-left: 7px; padding-left: 17px; border-left: 1px solid rgba(230, 245, 234, .22); color: rgba(233, 247, 237, .6); font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }

.story-copy { position: relative; z-index: 1; width: min(490px, 100%); margin: 46px auto 36px; }
.eyebrow, .form-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #9dceb0; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow-line { width: 23px; height: 1px; background: #d4ae64; }
.story-copy h1 { margin: 0; color: #fff; font-family: "Manrope", sans-serif; font-size: clamp(38px, 4vw, 56px); font-weight: 700; letter-spacing: -2.4px; line-height: 1.08; }
.story-copy h1 em { color: #c0e0c9; font-style: normal; }
.story-lead { max-width: 420px; margin: 21px 0 30px; color: rgba(241, 248, 243, .72); font-size: 14px; line-height: 1.8; }

.workspace-preview { width: min(430px, 100%); overflow: hidden; border: 1px solid rgba(222, 244, 229, .2); border-radius: 15px; background: rgba(247, 252, 248, .075); box-shadow: 0 18px 55px rgba(0,0,0,.16); backdrop-filter: blur(10px); }
.preview-top { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid rgba(222, 244, 229, .13); color: rgba(239, 249, 241, .6); font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.preview-top b { margin-left: 8px; color: #b5dbbe; font-size: 7px; letter-spacing: .8px; }
.preview-dot-row { display: flex; gap: 4px; }
.preview-dot-row i { width: 5px; height: 5px; border-radius: 50%; background: rgba(233, 247, 237, .38); }
.preview-content { padding: 18px 19px 16px; }
.preview-project { display: grid; gap: 4px; }
.preview-kicker { color: #a5d8b6; font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.preview-project strong { color: #fff; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.preview-project small { color: rgba(239, 249, 241, .53); font-size: 10px; }
.preview-plan { height: 119px; display: flex; align-items: center; justify-content: center; margin: 13px 0 12px; border: 1px solid rgba(222, 244, 229, .09); border-radius: 8px; color: rgba(203, 230, 211, .58); background: rgba(7, 28, 23, .13); }
.preview-plan svg { width: min(270px, 95%); max-height: 116px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-stats > div { display: grid; gap: 6px; }
.preview-stats span { color: rgba(239, 249, 241, .51); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.preview-stats strong { color: #fff; font-family: "Manrope", sans-serif; font-size: 17px; }
.preview-stats .status-ready { display: flex; align-items: center; gap: 6px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 600; }
.status-ready i { width: 6px; height: 6px; border-radius: 50%; background: #9be0b1; box-shadow: 0 0 0 3px rgba(155, 224, 177, .13); }
.preview-progress { height: 3px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: rgba(240, 249, 242, .13); }
.preview-progress span { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #78c39a, #e2c17d); }
.preview-foot { display: flex; justify-content: space-between; margin-top: 7px; color: rgba(239, 249, 241, .5); font-size: 8px; }
.preview-foot b { color: rgba(239, 249, 241, .75); font-weight: 600; }
.story-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: rgba(238, 248, 240, .67); }
.story-promise { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.promise-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid rgba(173, 222, 188, .45); border-radius: 50%; color: #b8e2c4; font-size: 10px; }
.story-version { color: rgba(238, 248, 240, .4); font-size: 8px; font-weight: 600; letter-spacing: 1px; }

.auth-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5.2vw, 68px); background: #fff; }
.mobile-brand { display: none; align-items: center; gap: 10px; color: var(--auth-forest); font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; }
.mobile-brand .brand-mark { border-color: #d5e4da; background: #f0f6f1; }
.auth-form-shell { width: min(420px, 100%); margin: auto; }
.auth-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 48px; }
.secure-note { display: flex; align-items: center; gap: 7px; color: #779087; font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.secure-note svg { width: 16px; height: 16px; color: #52916d; }
.back-home { color: #7c8984; font-size: 10px; text-decoration: none; transition: color .2s; }
.back-home:hover { color: var(--auth-green); }
.back-home span { padding-left: 3px; }
.auth-view h2 { margin: 0; color: var(--auth-ink); font-family: "Manrope", sans-serif; font-size: clamp(30px, 3vw, 36px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.13; }
.form-eyebrow { margin-bottom: 12px; color: #438364; font-size: 9px; letter-spacing: 1.35px; }
.form-intro { margin: 10px 0 26px; color: #77857f; font-size: 12px; line-height: 1.65; }

.google-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid #dfe6e2; border-radius: 8px; color: #273b35; background: #fff; font-size: 12px; font-weight: 700; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.google-button:hover { border-color: #bccfc3; background: #fbfdfb; box-shadow: 0 5px 16px rgba(18, 48, 40, .055); transform: translateY(-1px); }
.google-button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; transform: none; }
.google-button svg { width: 17px; height: 17px; }
.divider-label { display: flex; align-items: center; gap: 12px; margin: 23px 0; color: #9aa59f; }
.divider-label span { height: 1px; flex: 1; background: #e8ede9; }
.divider-label b { font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 7px; color: #334a42; font-size: 10px; font-weight: 700; }
.auth-field > input, .password-wrap input { width: 100%; height: 48px; min-width: 0; padding: 0 14px; border: 1px solid #dfe7e2; border-radius: 7px; outline: none; color: #203a31; background: #fff; font-size: 12px; font-weight: 500; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-field input::placeholder { color: #a8b2ac; font-weight: 400; }
.auth-field > input:focus, .password-wrap input:focus { border-color: #4e9471; box-shadow: 0 0 0 3px rgba(63, 139, 101, .1); background: #fefffe; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; top: 0; right: 4px; width: 42px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #87958e; background: transparent; }
.password-toggle:hover { color: var(--auth-green); background: #f3f8f4; }
.password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.auth-field small { color: #8c9993; font-size: 9px; font-weight: 400; line-height: 1.45; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; }
.remember-option { display: flex; align-items: center; gap: 7px; color: #7a8881; font-size: 10px; font-weight: 500; }
.remember-option input { width: 14px; height: 14px; margin: 0; accent-color: #287c60; }
.text-action, .switch-prompt button { padding: 0; border: 0; color: #2b7c5b; background: transparent; font-size: 10px; font-weight: 700; }
.text-action:hover, .switch-prompt button:hover { color: #185a40; text-decoration: underline; text-underline-offset: 3px; }
.submit-button { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 2px; padding: 0 17px; border: 1px solid #143d32; border-radius: 7px; color: #fff; background: linear-gradient(105deg, #174a3b, #1b674c); box-shadow: 0 6px 15px rgba(21, 78, 58, .13); font-size: 12px; font-weight: 700; transition: box-shadow .2s, transform .2s, background .2s; }
.submit-button:hover { background: linear-gradient(105deg, #123e32, #175a41); box-shadow: 0 9px 19px rgba(21, 78, 58, .2); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .68; transform: none; }
.submit-button b { color: #c7e7d1; font-size: 18px; font-weight: 400; }
.switch-prompt { margin: 23px 0 0; color: #829088; font-size: 10px; text-align: center; }
.switch-prompt button { margin-left: 3px; font-size: inherit; }
.legal-copy { margin: 0; color: #88958f; font-size: 9px; line-height: 1.6; text-align: center; }
.legal-copy a { color: #3c7659; text-decoration: none; }
.legal-copy a:hover { text-decoration: underline; }
.compact-view .form-intro { margin-bottom: 25px; }
.compact-view .switch-prompt { text-align: left; margin-top: 26px; }
.success-view { padding-top: 12px; }
.success-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid #cbe6d3; border-radius: 50%; color: #2f835b; background: #eff8f1; }
.success-icon svg { width: 25px; height: 25px; }
.small-note { margin-top: 20px; color: #8a9791; font-size: 10px; line-height: 1.6; }
.auth-feedback, .config-note { margin: -28px 0 23px; padding: 11px 13px; border: 1px solid #f0d5d0; border-radius: 7px; color: var(--auth-danger); background: #fff7f5; font-size: 10px; line-height: 1.5; }
.auth-feedback.is-success { border-color: #d0e6d6; color: #246347; background: #f1f9f3; }
.config-note { margin: 0 0 26px; border-color: #eadfc8; color: #735c35; background: #fffaf0; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 46px; padding-top: 17px; border-top: 1px solid #edf1ee; color: #9aa59f; font-size: 9px; }
.footer-security { display: flex; align-items: center; gap: 6px; }
.footer-security i { width: 5px; height: 5px; border-radius: 50%; background: #61a47a; }

.mobile-brand { margin-bottom: 27px; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr); }
  .auth-story { padding: 38px; }
  .story-copy h1 { font-size: clamp(38px, 4.5vw, 48px); }
  .auth-main { padding: 40px; }
  .story-version { display: none; }
}

@media (max-width: 760px) {
  body.auth-page { display: block; padding: 0; background: #fff; }
  .auth-layout { min-height: 100vh; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .auth-story { display: none; }
  .auth-main { min-height: 100vh; justify-content: flex-start; padding: max(22px, env(safe-area-inset-top)) 23px max(25px, env(safe-area-inset-bottom)); }
  .mobile-brand { display: flex; }
  .auth-form-shell { width: min(430px, 100%); margin: 30px auto 0; }
  .auth-topline { margin-bottom: 43px; }
  .auth-footer { margin-top: auto; padding-top: 23px; }
}

@media (max-width: 420px) {
  .auth-main { padding-right: 19px; padding-left: 19px; }
  .auth-form-shell { margin-top: 25px; }
  .auth-topline { align-items: flex-start; margin-bottom: 35px; }
  .secure-note { font-size: 7px; }
  .back-home { font-size: 9px; }
  .auth-view h2 { font-size: 31px; }
  .auth-footer { align-items: flex-start; flex-direction: column; }
  .form-options { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.site-legal-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:18px 24px 26px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.site-legal-footer a,.auth-legal-links a{margin-right:14px;color:var(--green);text-decoration:none}.site-legal-footer a:hover,.auth-legal-links a:hover{text-decoration:underline}.auth-legal-links{display:flex;gap:16px;flex-wrap:wrap}.auth-legal-links a{font-size:12px;font-weight:650}
/* A detected active session must have a visible, keyboard-accessible route into the app. */
.workspace-continue{display:flex;align-items:center;justify-content:space-between;margin:14px 0 18px;text-decoration:none;}
.workspace-continue[hidden]{display:none!important;}
