@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../public/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: rgba(255, 255, 255, .85);
  background: #000;
  font-synthesis: none;
  --background: #000;
  --text: rgba(255, 255, 255, .85);
  --heading: #fff;
  --secondary: rgba(255, 255, 255, .6);
  --tertiary: rgba(255, 255, 255, .45);
  --surface: rgba(20, 20, 20, .38);
  --surface-hover: rgba(36, 36, 36, .6);
  --input: rgba(66, 66, 66, .3);
  --primary: #3b79af;
  --primary-hover: #4a8bc2;
  --outline: #424242;
  --dialog: #181b21;
  --error: #ff9c9c;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { -webkit-user-select: none; user-select: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #78baff; outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page { position: relative; isolation: isolate; width: 100%; min-height: 100svh; overflow: hidden; background: var(--background); color: var(--text); }
.icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.page-navigation { position: absolute; inset: 0 0 auto; height: 104px; z-index: 5; pointer-events: none; }
.brand { position: absolute; top: 32px; left: 32px; display: inline-flex; pointer-events: auto; }
.brand img { display: block; object-fit: contain; }
.page-tools { position: absolute; top: 24px; right: 24px; display: flex; align-items: center; gap: 0; pointer-events: auto; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border-radius: var(--radius); color: var(--secondary); background: transparent; transition: color .2s, background-color .2s; }
.icon-button:hover { color: var(--text); background: var(--input); }
.icon-button:active { background: var(--surface-hover); }
.language-wrapper { position: relative; }
.language-menu { position: absolute; top: 48px; right: 0; width: 132px; padding: 6px; border: 1px solid var(--outline); border-radius: 10px; background: var(--dialog); box-shadow: 0 8px 24px #0003; }
.language-menu button { width: 100%; padding: 10px 12px; text-align: left; border-radius: 6px; background: transparent; font-size: 14px; }
.language-menu button:hover, .language-menu button[aria-current="true"] { background: var(--input); color: #6dabdf; }
.auth-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 70.322265625fr) minmax(0, 29.677734375fr); min-height: 100svh; }
.auth-description { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 80px; }
.description-inner { width: 100%; max-width: 1120px; }
.description-inner h1 { font-family: Rubik, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0 0 80px; color: var(--heading); font-size: 36px; font-weight: 700; line-height: 1.375; text-align: center; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.feature-card { padding: 32px; border-radius: 16px; text-align: center; background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .3s; }
.feature-card:hover { background: var(--surface-hover); }
.feature-card img { width: 144px; height: 144px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto 32px; }
.feature-card h2 { margin: 0 0 16px; color: var(--heading); font-size: 20px; font-weight: 700; line-height: 28px; }
.feature-card p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.auth-container { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 100svh; background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.form-shell { padding: 104px 32px; width: 100%; max-width: 384px; }
.form-shell h2 { font-family: Rubik, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0 0 12px; font-size: 24px; font-weight: 600; line-height: 32px; }
.login-shell form { padding-bottom: 16px; }
.form-subtitle { margin: 0 0 16px; font-size: 14px; line-height: 22px; color: var(--tertiary); }
.field-group { position: relative; margin-bottom: 16px; }
.field-wrapper { position: relative; }
.field-wrapper input { width: 100%; min-width: 0; height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--input); font-size: 16px; line-height: 22px; transition: border-color .2s, box-shadow .2s; }
.field-wrapper input::placeholder { color: var(--tertiary); opacity: 1; }
.field-wrapper input[type="password"], .field-wrapper input[name="password"], .field-wrapper input[name="password_confirmation"] { padding-right: 44px; }
.field-wrapper input:hover { border-color: rgba(90, 128, 160, .55); }
.field-wrapper input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 2px #3b79af22; }
.field-wrapper input[aria-invalid="true"] { border-color: var(--error); }
.field-wrapper input:autofill { box-shadow: 0 0 0 50px var(--dialog) inset; -webkit-text-fill-color: var(--text); }
.password-toggle { position: absolute; display: flex; align-items: center; justify-content: center; right: 0; top: 0; height: 40px; width: 40px; color: var(--tertiary); background: transparent; border-radius: var(--radius); }
.password-toggle .icon { width: 18px; height: 18px; }
.password-toggle:hover { color: var(--text); }
.field-error { display: block; margin-top: 6px; color: var(--error); font-size: 12px; line-height: 18px; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; margin: 20px 0 21px; font-size: 14px; line-height: 22px; }
.form-options a, .text-button { color: var(--primary); transition: color .2s; }
.form-options a:hover, .text-button:hover { color: #72b4ed; }
.checkbox-label { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin: 0; opacity: 0; transform: translateY(-50%); }
.checkbox-visual { position: relative; width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid var(--outline); border-radius: 4px; background: var(--input); transition: border-color .2s, background .2s; }
.checkbox-label input:checked + .checkbox-visual { border-color: var(--primary); background: var(--primary); }
.checkbox-label input:checked + .checkbox-visual::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-label input:focus-visible + .checkbox-visual { outline: 2px solid #78baff; outline-offset: 4px; }
.button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; padding: 7px 12px; border: 1px solid transparent; border-radius: var(--radius); font-size: 16px; line-height: 24px; transition: background-color .2s, border-color .2s, color .2s; cursor: pointer; }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-primary:active { background: #2f6798; }
.button-secondary { color: var(--primary); background: transparent; border-color: var(--primary); margin-top: 16px; }
.button-secondary:hover { background: #3b79af1a; border-color: var(--primary-hover); color: var(--primary-hover); }
.terms-option { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; row-gap: 6px; margin: 20px 0; font-size: 13px; line-height: 22px; }
.text-button { display: inline; padding: 0; font-size: inherit; background: transparent; }
.get-code { position: absolute; top: 0; right: 0; height: 40px; padding: 0 12px; color: var(--primary); background: transparent; font-size: 13px; border-radius: var(--radius); }
.get-code:hover { color: #72b4ed; }
input[name="email_code"] { padding-right: 110px; }
.space { position: absolute; z-index: 0; inset: 0; display: flex; justify-content: center; align-items: center; overflow: hidden; pointer-events: none; }
.space::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .32) 100%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .68) 100%); }
.planet { position: absolute; border-radius: 50%; width: 520px; height: 520px; transform: scale(2.5) translateY(38%) rotate(12.2deg); animation: planet-enter 1.8s cubic-bezier(.76, -.46, .37, .99); }
@keyframes planet-enter { from { transform: scale(1) translateY(0) rotate(-12.2deg); } }
.railway { position: absolute; top: -40px; left: -40px; border-radius: 50%; width: calc(100% + 80px); height: calc(100% + 80px); border: .5px dashed rgba(255, 255, 255, .48); animation: railway-rotate 40s infinite linear; }
.railway-spoke { position: absolute; inset: 0; border-radius: 50%; }
.railway-0 { transform: rotate(0); }.railway-1 { transform: rotate(72deg); }.railway-2 { transform: rotate(144deg); }.railway-3 { transform: rotate(216deg); }.railway-4 { transform: rotate(288deg); }
.orbit-feature { position: absolute; top: -30px; left: calc(50% - 30px); width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; text-align: center; padding: 4px; font-size: 10px; line-height: 1.2; transform: scale(.68); }
.orbit-label { display: flex; justify-content: center; align-items: center; white-space: nowrap; padding: 8px 16px; color: #fff; background: linear-gradient(to right, #3b82f6, #2563eb, #2563eb); box-shadow: 0 8px 15px -3px #3b82f680, 0 4px 6px -4px #3b82f680; border-radius: 9999px; }
.earth-model { position: relative; border-radius: 50%; box-shadow: 0 0 8px #96baff7a, 0 0 60px 12px #96baff52; width: 100%; height: 100%; overflow: hidden; }
.earth-model::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: 50%; box-shadow: 0 0 8px 4px #3b68c4fa inset, 24px 0 12px 2px #3b68c494 inset, 0 8px 48px 48px #3b68c447 inset, 48px 0 24px 48px #3b68c447 inset; }
.earth-textures { width: 100%; height: 100%; background-image: url('../public/earth.webp'); background-size: 200%; background-color: #00124d2e; animation: earth-rotate 80s linear infinite; filter: brightness(2.4) contrast(1.2); }
@keyframes railway-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes earth-rotate { from { background-position: calc(120% + 120px) 0; } to { background-position: calc(-80% + 120px) 0; } }
.toast { position: fixed; z-index: 30; top: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--outline); border-radius: 10px; color: var(--text); background: var(--dialog); box-shadow: 0 8px 32px #0004; font-size: 14px; line-height: 22px; }
dialog { color: var(--text); padding: 24px; width: min(400px, calc(100% - 32px)); border: 1px solid var(--outline); border-radius: 16px; background: var(--dialog); box-shadow: 0 16px 64px #0006; }
dialog::backdrop { background: #0007; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.dialog-header h2 { font-size: 20px; line-height: 28px; margin: 0; }
.dialog-header .icon-button { width: 36px; height: 36px; padding: 8px; margin: -6px -8px -6px 0; }
dialog p { color: var(--secondary); font-size: 14px; line-height: 24px; margin: 0 0 20px; }
dialog .preview-caption { font-size: 12px; line-height: 20px; margin: 12px 0 0; color: var(--tertiary); }
.dashboard-page .space { opacity: .4; }
.dashboard { position: relative; z-index: 2; max-width: 1100px; padding: 160px 48px 100px; margin: auto; }
.dashboard-heading { max-width: 720px; }
.demo-badge { display: inline-flex; padding: 5px 10px; border-radius: 6px; background: #3b79af33; color: #85bceb; font-size: 12px; }
.dashboard h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; margin: 24px 0 16px; }
.dashboard-heading p { font-size: 16px; line-height: 28px; color: var(--secondary); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px 0 32px; }
.demo-card { padding: 32px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); backdrop-filter: blur(12px); }
.demo-card > .icon { color: #78baff; width: 32px; height: 32px; margin-bottom: 24px; }
.demo-card h2 { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--secondary); }
.demo-card strong { display: block; font-size: 24px; line-height: 32px; }
.demo-card p { font-size: 14px; line-height: 22px; color: var(--secondary); }
.return-login { max-width: 220px; }
html[data-theme="light"] { color-scheme: light; --background: #f1f5fa; --text: #192330; --heading: #192330; --secondary: #4f5e70; --tertiary: #64748b; --surface: rgba(255, 255, 255, .72); --surface-hover: rgba(255, 255, 255, .95); --input: rgba(210, 220, 231, .45); --outline: #c6d1df; --dialog: #fff; --error: #b12525; }
html[data-theme="light"] .space { opacity: .45; }
html[data-theme="light"] .space::before { background: linear-gradient(180deg, #f1f5fa88, #f1f5fa); }
html[data-theme="light"] .demo-badge { color: #285b86; }
@media (min-width: 1600px) { .auth-description { padding: 96px; } }
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .auth-description { padding: 80px 36px; }
  .description-inner h1 { font-size: 30px; margin-bottom: 56px; }
  .feature-grid { gap: 12px; }
  .feature-card { padding: 20px; }
  .feature-card img { margin-bottom: 24px; width: 120px; height: 120px; }
  .feature-card h2 { font-size: 17px; line-height: 26px; }
}
@media (max-width: 1023px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-description { display: none; }
  .auth-container { background: rgba(20, 20, 20, .16); backdrop-filter: blur(8px); }
  .form-shell { padding: 112px 32px; }
  .page-navigation { height: 96px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard { padding: 128px 32px 100px; }
}
@media (max-width: 480px) {
  .brand { left: 24px; top: 24px; }
  .page-tools { top: 20px; right: 16px; }
  .planet { transform: scale(1.5) translateY(28%) rotate(12.2deg); }
  .form-shell { padding: 112px 28px; }
  .form-shell h2 { font-size: 24px; }
  .form-options a, .checkbox-label { min-height: 28px; }
  .field-wrapper input, .button { min-height: 44px; }
  .password-toggle, .get-code { height: 44px; }
  .dashboard { padding: 120px 24px 96px; }
}
/* Keep the auth flow comfortable on narrow phones and short landscape screens. */
@media (max-width: 480px) {
  html, body, #app { min-width: 0; width: 100%; overflow-x: hidden; }
  .page { min-height: 100svh; overflow: clip; }
  .page-navigation { height: 80px; }
  .brand { top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); }
  .brand img { width: 36px; height: 36px; }
  .page-tools { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .auth-layout, .auth-container { width: 100%; min-width: 0; }
  .auth-container { min-height: 100svh; align-items: flex-start; padding-top: 76px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .form-shell, .login-shell { width: 100%; max-width: 420px; padding: 32px 20px 40px; margin: 0 auto; }
  .form-shell h2 { font-size: 22px; line-height: 30px; margin-bottom: 8px; }
  .form-subtitle { margin-bottom: 20px; font-size: 13px; line-height: 20px; }
  .field-group { margin-bottom: 14px; }
  .field-wrapper input { width: 100%; height: 46px; min-height: 46px; font-size: 16px; }
  .password-toggle, .get-code { height: 46px; }
  .form-options { margin: 16px 0 20px; gap: 8px; font-size: 13px; }
  .checkbox-label, .form-options a { min-height: 32px; display: inline-flex; align-items: center; }
  .button { min-height: 46px; }
  .button-secondary { margin-top: 12px; }
  .terms-option { margin: 16px 0; font-size: 12px; line-height: 20px; }
}
@media (max-width: 360px) {
  .form-shell, .login-shell { padding-left: 16px; padding-right: 16px; }
  .form-options { font-size: 12px; }
  .form-options a { white-space: nowrap; }
}
@media (max-height: 680px) and (max-width: 767px) {
  .auth-container { padding-top: 64px; }
  .form-shell, .login-shell { padding-top: 20px; padding-bottom: 28px; }
  .form-subtitle { margin-bottom: 14px; }
  .field-group { margin-bottom: 10px; }
}
@media (max-height: 600px) and (min-width: 1024px) {
  .auth-description { padding-top: 96px; padding-bottom: 48px; }
  .description-inner h1 { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .earth-textures { background-position: calc(120% + 120px) 0; }
}
