:root {
  color-scheme: dark;
  --bg: #1c1c1e;
  --panel: #29292d;
  --line: rgba(255, 255, 255, .13);
  --text: #f5f5f7;
  --muted: #a2a2a8;
  --blue: #0a84ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }
.auth-topbar { height: 60px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.5); background: rgba(51,51,56,.97); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: -.75px; }
.brand svg { width: 31px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.brand span { color: var(--blue); }
.topbar-status { display: flex; align-items: center; gap: 7px; color: #b9b9bf; font-size: 12px; }
.topbar-status span { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.1); }
.auth-page { min-height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(430px, .95fr); background: radial-gradient(circle at 27% 27%, rgba(10,132,255,.105), transparent 30%), var(--bg); }
.auth-intro { min-height: calc(100vh - 60px); padding: clamp(50px,7vw,105px); position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-right: 1px solid rgba(255,255,255,.06); }
.auth-intro::before,.auth-intro::after { content: ""; position: absolute; border: 1px solid rgba(10,132,255,.105); border-radius: 50%; pointer-events: none; }
.auth-intro::before { width: 600px; height: 600px; left: -280px; bottom: -390px; box-shadow: 0 0 0 90px rgba(10,132,255,.018), 0 0 0 180px rgba(10,132,255,.012); }
.auth-intro::after { width: 330px; height: 330px; right: -220px; top: -180px; }
.hero-cloud { width: 106px; height: 92px; margin-bottom: 28px; position: relative; display: grid; place-items: center; color: var(--blue); }
.hero-cloud span { position: absolute; inset: 10px; border-radius: 32px; background: rgba(10,132,255,.1); filter: blur(20px); }
.hero-cloud svg { width: 100px; height: 76px; position: relative; fill: none; stroke: currentColor; stroke-width: 3.7; stroke-linecap: round; stroke-linejoin: round; }
.intro-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-size: 12px; font-weight: 720; letter-spacing: .075em; text-transform: uppercase; }
.intro-copy h1 { margin: 0; font-size: clamp(46px,5vw,76px); line-height: .99; letter-spacing: -.055em; font-weight: 690; }
.intro-copy h1 span { color: #a9a9af; }
.intro-copy > p:last-child { max-width: 560px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.privacy-badge { position: relative; z-index: 1; margin-top: 46px; display: flex; align-items: center; gap: 13px; }
.privacy-badge > span { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(10,132,255,.3); border-radius: 14px; background: rgba(10,132,255,.09); color: #64d2ff; font-size: 13px; font-weight: 750; }
.privacy-badge strong,.privacy-badge small { display: block; }
.privacy-badge strong { font-size: 14px; }
.privacy-badge small { margin-top: 4px; color: var(--muted); }
.auth-card-wrap { padding: 50px clamp(34px,6vw,90px); display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(27,27,30,.52); }
.auth-card { width: min(440px,100%); padding: 31px; border: 1px solid var(--line); border-radius: 23px; background: rgba(44,44,48,.89); box-shadow: 0 32px 85px rgba(0,0,0,.33); backdrop-filter: saturate(125%) blur(28px); }
.auth-card-head { margin-bottom: 24px; }
.auth-card-head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.auth-card-head > p:last-child { margin: 8px 0 0; color: var(--muted); }
.field { display: grid; gap: 7px; margin: 15px 0; color: #b8b8bd; font-size: 13px; font-weight: 550; }
.field input,.field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.06); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus,.field textarea:focus { border-color: var(--blue); background: rgba(255,255,255,.085); box-shadow: 0 0 0 4px rgba(10,132,255,.16); }
.primary-button,.secondary-button { width: 100%; min-height: 49px; padding: 0 17px; border: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; color: white; font-weight: 640; cursor: pointer; transition: transform .15s, opacity .15s, filter .15s; }
.primary-button { justify-content: space-between; margin-top: 21px; background: var(--blue); }
.secondary-button { margin-top: 11px; background: rgba(255,255,255,.1); }
.primary-button:hover { filter: brightness(1.08); }
.primary-button:active,.secondary-button:active { transform: scale(.985); }
.primary-button:disabled,.secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.form-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 19px; }
.form-links button { border: 0; padding: 0; background: transparent; color: #4aa3ff; cursor: pointer; }
.form-error { margin: 13px 0 0; padding: 11px 13px; border-radius: 11px; background: rgba(255,69,58,.12); color: #ffaaa4; font-size: 14px; line-height: 1.4; }
.auth-footnote { width: min(440px,100%); margin: 23px 0 0; color: #77777e; font-size: 12px; line-height: 1.5; text-align: center; }
.notice { padding: 14px 15px; border: 1px solid rgba(10,132,255,.2); border-radius: 13px; background: rgba(10,132,255,.1); }
.notice p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
dialog { width: min(520px,calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 23px; color: var(--text); background: var(--panel); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.recovery-dialog-content { padding: 34px; text-align: center; }
.recovery-icon { width: 52px; height: 52px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(48,209,88,.13); color: #67e586; font-size: 24px; }
.recovery-dialog-content h2 { margin: 4px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.recovery-dialog-content > p:not(.eyebrow) { margin: 0 auto; max-width: 390px; color: var(--muted); line-height: 1.5; }
.recovery-code { margin: 20px 0 4px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #202023; font: 600 14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; user-select: all; }
.confirm-check { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.confirm-check input { width: 18px; height: 18px; accent-color: var(--blue); }
button:focus-visible,input:focus-visible,textarea:focus-visible { outline: 3px solid rgba(10,132,255,.38); outline-offset: 2px; }
@media (max-width: 900px) {
  .auth-page { display: block; }
  .auth-intro { min-height: auto; padding: 46px 24px 35px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); align-items: center; text-align: center; }
  .hero-cloud { margin-bottom: 16px; }
  .intro-copy h1 { font-size: 46px; }
  .intro-copy > p:last-child { margin-top: 18px; font-size: 16px; }
  .privacy-badge { display: none; }
  .auth-card-wrap { min-height: 540px; padding: 38px 22px 48px; }
}
@media (max-width: 520px) {
  .auth-topbar { height: 56px; padding: 0 15px; }
  .brand { font-size: 20px; }
  .topbar-status { display: none; }
  .auth-page { min-height: calc(100vh - 56px); }
  .auth-intro { padding: 32px 19px 27px; }
  .hero-cloud { width: 76px; height: 62px; }
  .hero-cloud svg { width: 72px; height: 58px; }
  .intro-copy h1 { font-size: 37px; }
  .intro-copy > p:last-child { display: none; }
  .auth-card-wrap { min-height: auto; padding: 25px 14px 40px; }
  .auth-card { padding: 24px 18px; border-radius: 19px; }
  .auth-card-head h2 { font-size: 30px; }
  .form-links { align-items: flex-start; flex-direction: column; }
  .recovery-dialog-content { padding: 27px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
