@font-face {
  font-family: "Korataki";
  src: url("fonts/Korataki.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080d16;
  --panel: #0d1522;
  --panel-raised: #111c2c;
  --text: #f3f6fb;
  --muted: #8d9bb0;
  --line: rgba(157, 176, 203, .13);
  --red: #d83b4c;
  --blue: #3979dc;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--bg); }
body { color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.intro {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #101a2a 0%, #080d16 48%, #05080e 100%);
  opacity: 1; visibility: visible; transition: opacity 850ms ease, visibility 850ms ease;
}
.intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.light-wash { position: absolute; top: -28%; bottom: -28%; width: 46vw; min-width: 360px; filter: blur(95px); opacity: .0; pointer-events: none; }
.light-wash--red { left: -18%; background: radial-gradient(ellipse, rgba(214, 43, 62, .58) 0%, rgba(169, 28, 48, .22) 34%, transparent 72%); animation: redPulse 2.7s ease-in-out infinite; }
.light-wash--blue { right: -18%; background: radial-gradient(ellipse, rgba(46, 111, 220, .58) 0%, rgba(32, 79, 164, .23) 34%, transparent 72%); animation: bluePulse 2.7s ease-in-out infinite; }
.intro-grain { position: absolute; inset: 0; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
.intro-content { position: relative; z-index: 1; width: min(900px, 90vw); text-align: center; transform: translateY(-1.5vh); animation: revealIn 1.05s cubic-bezier(.2,.7,.2,1) both; }
.wordmark-wrap { display: inline-block; padding: 10px 18px 14px; }
.wordmark { margin: 0; color: #f7f8fc; font-family: "Korataki", "Arial Black", var(--font-ui); font-size: clamp(2.5rem, 7.5vw, 6.7rem); line-height: 1; letter-spacing: -.065em; font-weight: 400; transform: skewX(-11deg); text-shadow: 0 0 34px rgba(205, 218, 241, .13); white-space: nowrap; }
.intro-subtitle { margin: 25px 0 0; color: #aab6c8; font-size: 11px; font-weight: 650; letter-spacing: .38em; }
.intro-rule { width: 210px; height: 1px; margin: 28px auto 19px; background: linear-gradient(90deg, transparent, rgba(190, 204, 226, .32), transparent); }
.intro-rule span { display: block; width: 38px; height: 1px; margin: auto; background: #e1e8f3; box-shadow: 0 0 13px rgba(228, 236, 248, .8); }
.intro-caption { margin: 0; color: #75849a; font-size: 11px; letter-spacing: .15em; }
.skip-intro { position: absolute; z-index: 2; right: 38px; bottom: 36px; border: 1px solid rgba(172, 190, 217, .2); border-radius: 3px; padding: 11px 15px; color: #aebbd0; background: rgba(8, 13, 22, .34); font-size: 9px; font-weight: 700; letter-spacing: .16em; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.skip-intro:hover { color: white; border-color: rgba(213, 225, 244, .5); background: rgba(255,255,255,.04); }
.skip-intro span { padding-left: 9px; }
.intro-footer { position: absolute; bottom: 39px; left: 40px; right: 40px; display: flex; justify-content: space-between; color: #536176; font-size: 9px; font-weight: 700; letter-spacing: .19em; }

.login-screen { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 42px; background: radial-gradient(ellipse at 50% 50%, #101a2a 0%, #080d16 66%); opacity: 0; transition: opacity 850ms ease; }
.login-screen.is-visible { opacity: 1; }
.ambient { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .12; }
.ambient--red { left: -390px; top: 9%; background: var(--red); }
.ambient--blue { right: -400px; bottom: -18%; background: var(--blue); }
.login-shell { position: relative; z-index: 1; width: min(1120px, 100%); min-height: 660px; display: grid; grid-template-columns: 1.04fr .96fr; overflow: hidden; border: 1px solid rgba(160, 180, 210, .14); border-radius: 9px; background: rgba(12, 19, 30, .88); box-shadow: 0 36px 100px rgba(0,0,0,.42); }
.brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 660px; padding: 36px 42px; overflow: hidden; background: linear-gradient(145deg, rgba(24, 37, 57, .96), rgba(12, 20, 32, .98)); border-right: 1px solid var(--line); }
.brand-panel::before { content: ""; position: absolute; width: 490px; height: 490px; right: -240px; top: 80px; border: 1px solid rgba(164, 188, 222, .09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(164,188,222,.018), 0 0 0 95px rgba(164,188,222,.014), 0 0 0 145px rgba(164,188,222,.01); }
.brand-panel::after { content: ""; position: absolute; width: 250px; height: 250px; right: -90px; bottom: -130px; border-radius: 50%; background: rgba(48, 102, 183, .16); filter: blur(70px); }
.brand-topline, .brand-panel-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: #8494aa; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.status-dot, .secure-dot { width: 6px; height: 6px; border-radius: 50%; background: #78b99d; box-shadow: 0 0 10px rgba(120,185,157,.6); }
.brand-panel-main { position: relative; z-index: 1; max-width: 420px; margin-top: -10px; }
.brand-mark-small { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 47px; border: 1px solid rgba(172, 193, 225, .28); border-radius: 5px; color: #eef3fc; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.015)); font-size: 15px; font-weight: 800; letter-spacing: -.07em; }
.eyebrow { margin: 0 0 17px; color: #8f9db2; font-size: 9px; font-weight: 750; letter-spacing: .24em; }
.brand-panel h2 { margin: 0; color: #f4f7fc; font-size: clamp(2.3rem, 4vw, 3.65rem); font-weight: 560; letter-spacing: -.065em; line-height: 1.08; }
.brand-panel h2 span { color: #96a7bf; }
.brand-description { max-width: 345px; margin: 24px 0 0; color: #9aa8bb; font-size: 13px; line-height: 1.85; }
.brand-panel-bottom { justify-content: space-between; color: #6f8097; }
.version-label { color: #8392a8; }
.auth-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px 31px; background: rgba(9, 15, 24, .68); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.wordmark--small { color: #e7edf6; font-family: "Korataki", "Arial Black", var(--font-ui); font-size: 17px; letter-spacing: -.055em; transform: skewX(-10deg); white-space: nowrap; }
.secure-label { display: flex; align-items: center; gap: 8px; color: #8391a5; font-size: 8px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.secure-dot { width: 5px; height: 5px; }
.auth-content { width: 100%; max-width: 370px; margin: 44px auto 34px; }
.auth-content .eyebrow { margin-bottom: 14px; color: #bd6470; }
.auth-content h1 { margin: 0; color: #f1f4f9; font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 570; letter-spacing: -.065em; line-height: 1.12; }
.auth-description { margin: 15px 0 34px; color: #8998ad; font-size: 12px; line-height: 1.7; }
#loginForm { display: flex; flex-direction: column; }
#loginForm label { margin: 0 0 10px; color: #a8b5c7; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
#loginForm input { width: 100%; height: 49px; margin-bottom: 23px; border: 1px solid rgba(154, 175, 205, .17); border-radius: 4px; outline: none; padding: 0 14px; color: #f4f6fa; background: rgba(18, 29, 44, .72); font-size: 12px; transition: border-color .2s, box-shadow .2s; }
#loginForm input::placeholder { color: #607087; }
#loginForm input:focus { border-color: rgba(84, 133, 205, .8); box-shadow: 0 0 0 3px rgba(57, 121, 220, .1); }
.password-label-row { display: flex; align-items: center; justify-content: space-between; }
.password-label-row a { margin-bottom: 10px; color: #8ca9d0; font-size: 10px; text-decoration: none; }
.password-label-row a:hover { color: #c3d5f0; }
.sign-in-button { height: 49px; display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 3px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; color: white; background: linear-gradient(105deg, #a92c3d, #c23a4a 52%, #9f2b3b); box-shadow: 0 8px 24px rgba(158, 38, 55, .18); font-size: 10px; font-weight: 800; letter-spacing: .18em; cursor: pointer; transition: filter .2s, transform .2s; }
.sign-in-button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sign-in-button span { font-size: 15px; font-weight: 400; }
.form-message { min-height: 30px; margin: 14px 0 0; color: #6f819a; font-size: 10px; line-height: 1.55; }
.auth-footer { display: flex; justify-content: space-between; gap: 12px; color: #58687e; font-size: 8px; font-weight: 700; letter-spacing: .15em; }

@keyframes redPulse { 0%, 100% { opacity: .15; transform: translateX(-2%) scale(.93); } 48% { opacity: .72; transform: translateX(9%) scale(1.08); } }
@keyframes bluePulse { 0%, 100% { opacity: .68; transform: translateX(2%) scale(1.08); } 52% { opacity: .13; transform: translateX(-9%) scale(.93); } }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(5px); } to { opacity: 1; transform: translateY(-1.5vh) scale(1); filter: blur(0); } }

@media (max-width: 850px) {
  .login-screen { padding: 20px; }
  .login-shell { grid-template-columns: 1fr; max-width: 560px; min-height: 0; }
  .brand-panel { display: none; }
  .auth-panel { min-height: 640px; padding: 30px 28px 25px; }
  .auth-content { margin: 65px auto; }
}
@media (max-width: 520px) {
  .intro-subtitle { font-size: 8px; letter-spacing: .25em; }
  .intro-caption { font-size: 9px; }
  .intro-footer { left: 20px; right: 20px; bottom: 22px; font-size: 7px; }
  .skip-intro { right: 20px; bottom: 52px; }
  .auth-panel { padding: 25px 20px 22px; }
  .secure-label { font-size: 7px; }
  .wordmark--small { font-size: 14px; }
  .auth-footer { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
