@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root{
  color-scheme:light;
  --bg:#f7f9fd;
  --bg-deep:#eef4fb;
  --panel:rgba(255,255,255,.78);
  --panel-strong:#ffffff;
  --border:rgba(30,66,98,.12);
  --text:#1a3148;
  --muted:#6e8298;
  --cyan:#09c9f3;
  --cyan-strong:#02b7ea;
  --blue:#2f7df8;
  --purple:#d200ec;
  --shadow:0 18px 60px rgba(29,58,94,.10);
  --shadow-soft:0 10px 35px rgba(29,58,94,.08);
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  overflow-x:hidden;
  font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.page-bg{
  position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,.95) 0%, rgba(247,250,253,.90) 28%, rgba(236,243,250,.84) 62%, rgba(231,239,248,.96) 100%);
}
.page-bg::before,
.page-bg::after,
.mesh-overlay,
.noise-overlay,
.grid-overlay{content:"";position:absolute;inset:0}
.ambient{position:absolute;border-radius:50%;filter:blur(80px);opacity:.55;animation:floatBlob 13s ease-in-out infinite alternate}
.ambient-a{width:440px;height:440px;left:-180px;top:10%;background:rgba(99,224,255,.45)}
.ambient-b{width:460px;height:460px;right:-190px;bottom:-170px;background:rgba(205,96,255,.24);animation-delay:-6s}
.grid-overlay{
  background-image:
    linear-gradient(rgba(121,157,191,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121,157,191,.12) 1px, transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(circle at center, rgba(0,0,0,.65), transparent 82%);
  opacity:.50;
  animation:gridDrift 24s linear infinite;
}
.mesh-overlay{
  background:
    radial-gradient(circle at 20% 20%, rgba(16,211,240,.10), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(191,55,249,.08), transparent 28%),
    radial-gradient(circle at 58% 74%, rgba(55,122,255,.08), transparent 22%),
    radial-gradient(circle at 12% 80%, rgba(30,190,255,.05), transparent 20%);
  filter:blur(10px);
  opacity:.9;
  animation:meshMove 18s ease-in-out infinite alternate;
}
.noise-overlay{
  opacity:.14;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(12,45,76,.20) 1px, transparent 0),
    radial-gradient(circle at 2px 2px, rgba(0,197,235,.08) 1px, transparent 0);
  background-size:18px 18px, 28px 28px;
  mix-blend-mode:soft-light;
  animation:noiseShift 16s linear infinite;
}
.layout{min-height:100svh;display:flex;flex-direction:column;width:min(100%,1480px);margin:0 auto;padding:26px clamp(22px,5vw,74px) 22px}
.topbar,.footer{display:flex;align-items:center;justify-content:space-between;gap:18px}
.topbar{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.brand-small{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;letter-spacing:.03em;text-transform:none;color:var(--text)}
.live-mark,.status-dot{width:8px;height:8px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 5px rgba(6,195,235,.11),0 0 14px rgba(6,195,235,.46)}
.top-actions{display:flex;gap:14px;align-items:center}
.icon-button{
  width:42px;height:42px;border-radius:999px;border:1px solid var(--border);
  background:var(--panel);backdrop-filter:blur(18px);
  color:var(--text);display:grid;place-items:center;cursor:pointer;
  transition:transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
  box-shadow:var(--shadow-soft);
}
.icon-button:hover{transform:translateY(-2px);border-color:rgba(6,195,235,.35)}
.icon-button:focus-visible,.email-link:focus-visible,.login-entry:focus-visible,.inline-link:focus-visible,.auth-button:focus-visible,.back-link:focus-visible{outline:3px solid rgba(9,201,243,.7);outline-offset:4px}
.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-button .sun-icon{display:none}

.main-content{flex:1;display:flex;align-items:center;justify-content:center;padding:26px 0 34px}
.hero{width:100%;max-width:740px;text-align:center;animation:fadeUp .8s ease both}
.symbol-stage{position:relative;width:270px;height:270px;margin:-10px auto -4px;display:grid;place-items:center}
.symbol-stage .halo{position:absolute;border-radius:50%;border:1px solid rgba(83,138,186,.16)}
.halo-one{inset:10px;animation:breathe 5s ease-in-out infinite}
.halo-two{inset:22px;border-color:rgba(34,205,240,.13);animation:breathe 5s ease-in-out infinite reverse}
.orbital{position:absolute;width:7px;height:7px;border-radius:50%;top:19px;left:calc(50% - 3.5px);transform-origin:3.5px 116px;animation:spin 14s linear infinite;background:var(--cyan);box-shadow:0 0 12px rgba(12,201,242,.7)}
.orbital-b{animation-duration:20s;animation-direction:reverse;background:var(--purple);opacity:.78}
.symbol{position:relative;z-index:2;display:grid;place-items:center}
.symbol-inline{width:222px;height:222px;filter:drop-shadow(0 16px 28px rgba(33,79,149,.16));animation:symbolFloat 6s ease-in-out infinite}
.logo-symbol-svg{width:100%;height:100%;display:block;overflow:visible}
.symbol-aura{animation:coreGlow 5s ease-in-out infinite}
.core-ring{fill:none;stroke:rgba(255,255,255,.72);stroke-width:4}
.orbital-c{animation-duration:11s;background:#54a9ff;opacity:.82;transform-origin:3.5px 104px;top:31px}
.orbital-d{animation-duration:17s;animation-direction:reverse;background:#ef4bcf;opacity:.86;transform-origin:3.5px 122px;top:9px}
.orbital-e{animation-duration:24s;background:#8b5cff;opacity:.60;transform-origin:3.5px 114px;top:25px}
.logo-symbol-svg .node{r:18}
.logo-symbol-svg .symbol-aura{filter:blur(0.5px)}
.logo-symbol-svg .core-ring{stroke:rgba(255,255,255,.78);stroke-width:4.5}

.arm,.node{animation-duration:4.6s;animation-iteration-count:infinite;animation-timing-function:ease-in-out}
.arm{stroke:var(--cyan);animation-name:armCycle;filter:drop-shadow(0 0 7px rgba(14,201,242,.20))}
.node{fill:var(--cyan);animation-name:nodeCycle;filter:drop-shadow(0 0 10px rgba(9,201,243,.30))}
.arm1,.node1{animation-delay:0s}
.arm2,.node2{animation-delay:.35s}
.arm3,.node3{animation-delay:.7s}
.arm4,.node4{animation-delay:1.05s}
.arm5,.node5{animation-delay:1.4s}
.wordmark{display:block;width:min(100%,520px);height:auto;margin:10px auto 0;filter:drop-shadow(0 8px 18px rgba(32,58,84,.12))}
.rule{width:126px;height:1px;margin:28px auto 24px;position:relative;background:linear-gradient(90deg,transparent, rgba(103,145,179,.44), transparent)}
.rule span{position:absolute;top:-2px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--cyan)}
.status{display:inline-flex;gap:10px;align-items:center;justify-content:center;font-size:10px;letter-spacing:.28em;font-weight:700;color:var(--muted)}
.status-dot{width:7px;height:7px;animation:breathe 2.4s ease-in-out infinite}
h2{margin:18px 0 12px;font-size:clamp(34px,5.2vw,58px);line-height:1.08;letter-spacing:-.055em;font-weight:500}
h2 strong{display:inline-block;font-weight:800;line-height:1.12;padding:.04em 0 .10em;background:linear-gradient(98deg,var(--cyan-strong), var(--blue) 55%, var(--purple));-webkit-background-clip:text;background-clip:text;color:transparent}
.intro{max-width:470px;margin:0 auto;color:var(--muted);font-size:15px;line-height:1.8}
.actions{margin-top:30px}
.email-link{display:inline-flex;align-items:center;gap:12px;padding:16px 24px;border-radius:999px;text-decoration:none;font-size:14px;font-weight:700;background:var(--panel-strong);border:1px solid var(--border);box-shadow:var(--shadow);transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;background-image:linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,254,.92))}
.email-link:hover{transform:translateY(-3px);border-color:rgba(6,195,235,.35);box-shadow:0 18px 35px rgba(19,82,141,.18)}
.email-link svg{color:var(--cyan-strong)}
.email-link span{font-size:19px;color:#7b95ad}
.footer{padding-top:20px;border-top:1px solid rgba(124,156,188,.18);font-size:11px;color:#8c9caf}
.footer-right{display:flex;align-items:center;gap:10px}
.login-entry{display:flex;align-items:center;gap:9px;text-decoration:none;border-radius:10px;padding:8px 10px;transition:background .2s ease,color .2s ease}
.login-entry:hover{background:rgba(0,193,233,.08);color:var(--cyan-strong)}
.login-entry svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.auth-main{flex:1;display:grid;place-items:center;padding:40px 12px}
.auth-card{width:min(100%,442px);padding:34px 34px 32px;border-radius:28px;border:1px solid var(--border);background:var(--panel);backdrop-filter:blur(18px);box-shadow:0 24px 70px rgba(7,33,63,.18)}
.auth-mark{margin:0 auto 6px;width:94px;height:94px}
.auth-brand{display:block;width:min(100%,230px);height:auto;margin:0 auto 24px;filter:drop-shadow(0 6px 14px rgba(0,0,0,.10))}
.auth-card h1{margin:0 0 8px;text-align:center;font-size:30px;letter-spacing:-.05em}
.auth-copy{text-align:center;color:var(--muted);font-size:13px;line-height:1.65;margin:0 0 24px}
.auth-form{display:grid;gap:16px}
.field label{display:block;margin-bottom:8px;font-size:12px;font-weight:700}
.field input{width:100%;height:48px;border-radius:13px;border:1px solid var(--border);background:rgba(255,255,255,.84);color:var(--text);padding:0 14px;font:inherit;font-size:14px;outline:none;transition:border-color .2s ease, box-shadow .2s ease, background .2s ease}
.field input::placeholder{color:#8ea1b4}
.field input:focus{border-color:rgba(6,195,235,.55);box-shadow:0 0 0 3px rgba(9,201,243,.16)}
.auth-row{display:flex;justify-content:flex-end}
.inline-link{padding:0;border:0;background:none;color:var(--cyan-strong);font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none}
.inline-link:hover{text-decoration:underline}
.auth-button{height:50px;border:0;border-radius:14px;cursor:pointer;background:linear-gradient(100deg,var(--cyan-strong), var(--blue) 56%, var(--purple));color:#fff;font:inherit;font-weight:800;font-size:15px;letter-spacing:.01em;box-shadow:0 16px 30px rgba(55,111,232,.25);transition:transform .24s ease, filter .24s ease}
.auth-button:hover{transform:translateY(-2px);filter:brightness(1.05)}
.auth-bottom{text-align:center;color:var(--muted);font-size:13px;margin:22px 0 0}
.back-link{text-decoration:none;color:inherit;font-size:12px;display:inline-flex;align-items:center;gap:8px}
.back-link:hover{color:var(--cyan-strong)}

.toast{position:fixed;right:18px;bottom:18px;max-width:min(320px,calc(100vw - 36px));padding:14px 16px;border-radius:14px;background:rgba(15,31,50,.92);color:#fff;font-size:13px;line-height:1.45;box-shadow:0 16px 40px rgba(0,0,0,.24);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s ease, transform .25s ease;z-index:80}
.toast.is-visible{opacity:1;transform:translateY(0)}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#07131f;
  --bg-deep:#0b1e2f;
  --panel:rgba(14,34,55,.76);
  --panel-strong:rgba(18,39,63,.95);
  --border:rgba(155,190,221,.16);
  --text:#edf5ff;
  --muted:#9db2c8;
  --shadow:0 20px 58px rgba(0,0,0,.26);
  --shadow-soft:0 10px 28px rgba(0,0,0,.22);
}
html[data-theme="dark"] body{background:var(--bg)}
html[data-theme="dark"] .page-bg{background:radial-gradient(circle at 50% 36%, rgba(18,41,64,.86) 0%, rgba(10,24,39,.98) 50%, rgba(5,16,28,1) 100%)}
html[data-theme="dark"] .grid-overlay{opacity:.28;background-image:linear-gradient(rgba(101,147,196,.13) 1px, transparent 1px),linear-gradient(90deg, rgba(101,147,196,.13) 1px, transparent 1px)}
html[data-theme="dark"] .mesh-overlay{opacity:.78}
html[data-theme="dark"] .noise-overlay{opacity:.12;mix-blend-mode:screen}
html[data-theme="dark"] .ambient{opacity:.26}
html[data-theme="dark"] .brand-small,
html[data-theme="dark"] .back-link,
html[data-theme="dark"] .topbar{color:var(--text)}
html[data-theme="dark"] .wordmark,
html[data-theme="dark"] .auth-brand{filter:brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0,0,0,.28))}
html[data-theme="dark"] .icon-button{background:rgba(12,28,46,.72)}
html[data-theme="dark"] .icon-button .sun-icon{display:block}
html[data-theme="dark"] .icon-button .moon-icon{display:none}
html[data-theme="dark"] .email-link{background:linear-gradient(180deg, rgba(19,40,63,.96), rgba(14,31,50,.96));color:var(--text)}
html[data-theme="dark"] .email-link span{color:#85aacb}
html[data-theme="dark"] .footer{border-top-color:rgba(149,179,211,.15);color:#8ea6bf}
html[data-theme="dark"] .rule{background:linear-gradient(90deg,transparent, rgba(98,145,190,.44), transparent)}
html[data-theme="dark"] .field input{background:rgba(8,25,42,.92);color:var(--text)}
html[data-theme="dark"] .field input::placeholder{color:#7e95ad}
html[data-theme="dark"] .auth-card{box-shadow:0 24px 70px rgba(0,0,0,.32)}
html[data-theme="dark"] .core-ring{stroke:rgba(255,255,255,.16)}

html:not([data-theme="dark"]) .icon-button .moon-icon{display:block}
html:not([data-theme="dark"]) .icon-button .sun-icon{display:none}

@keyframes nodeCycle{
  0%,100%{fill:#09c9f3;opacity:1;filter:drop-shadow(0 0 7px rgba(9,201,243,.28))}
  40%{fill:#47a2ff;opacity:.95;filter:drop-shadow(0 0 10px rgba(71,162,255,.35))}
  65%{fill:#c312f0;opacity:1;filter:drop-shadow(0 0 12px rgba(195,18,240,.44))}
  82%{fill:#ef48d7;opacity:.96;filter:drop-shadow(0 0 11px rgba(239,72,215,.40))}
}
@keyframes armCycle{
  0%,100%{stroke:#08c8f2;opacity:.98;filter:drop-shadow(0 0 6px rgba(8,200,242,.12))}
  35%{stroke:#3e94ff;opacity:.95}
  65%{stroke:#bd15f0;opacity:1;filter:drop-shadow(0 0 8px rgba(189,21,240,.18))}
  82%{stroke:#eb3fdb;opacity:.95}
}
@keyframes coreGlow{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.92}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes breathe{0%,100%{transform:scale(.98);opacity:.58}50%{transform:scale(1.02);opacity:1}}
@keyframes floatBlob{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(18px,-16px,0) scale(1.06)}}
@keyframes meshMove{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-12px,14px,0) scale(1.04)}}
@keyframes noiseShift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(24px,18px,0)}}
@keyframes gridDrift{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(26px,18px,0)}}
@keyframes symbolFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

@media (max-width: 900px){
  .layout{padding-inline:22px}
  .symbol-stage{width:250px;height:250px}
  .symbol-inline{width:206px;height:206px}
  .wordmark{width:min(100%,500px)}
}
@media (max-width: 640px){
  .layout{padding:18px 16px 18px}
  .topbar{font-size:11px;letter-spacing:.10em}
  .main-content{padding:16px 0 28px}
  .hero{max-width:100%}
  .symbol-stage{width:226px;height:226px;margin:0 auto -2px}
  .symbol-inline{width:182px;height:182px}
  .wordmark{width:min(100%,440px)}
  h2{font-size:clamp(32px,10vw,46px)}
  .intro{font-size:14px;max-width:420px}
  .email-link{padding:15px 20px;font-size:13px}
  .footer{font-size:10px;gap:12px}
  .login-entry span{display:none}
  .auth-main{padding:26px 0}
  .auth-card{padding:28px 22px;border-radius:22px}
}
@media (max-width: 480px){
  .brand-small span:last-child{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .symbol-stage{width:210px;height:210px}
  .symbol-inline{width:166px;height:166px}
  .wordmark{width:min(100%,360px)}
  .status{font-size:9px;letter-spacing:.24em}
  .email-link{width:100%;justify-content:center}
  .footer{flex-wrap:wrap}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
