:root {
  color-scheme: dark;
  --ink: #e9f6f7;
  --muted: #91adb5;
  --cyan: #42d9dc;
  --gold: #f5c75d;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-height: 100vh; background: #061720; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }

.login-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 105%, #075c69 0, transparent 52%), linear-gradient(155deg, #071b27, #062731 65%, #061720);
}

.water-light { position: absolute; z-index: -1; width: min(80vw, 760px); height: 140px; border-radius: 50%; background: #22bdc3; filter: blur(80px); opacity: .12; transform: rotate(-22deg); }
.water-light-one { top: 15%; left: -30%; }
.water-light-two { right: -32%; bottom: 17%; background: #e1a940; opacity: .08; }

.login-card {
  width: min(100%, 390px);
  padding: 32px;
  border: 1px solid rgba(136, 220, 224, .2);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(14, 43, 54, .97), rgba(8, 27, 37, .98));
  box-shadow: 0 22px 70px rgba(0, 8, 14, .42), inset 0 1px 0 rgba(218, 255, 252, .04);
}

.game-mark { display: inline-flex; align-items: center; gap: 10px; color: #e6f5f6; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-decoration: none; }
.game-mark b { color: var(--gold); }
.mark-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(91, 221, 222, .5); border-radius: 10px; color: #05262e; background: linear-gradient(145deg, #63e8e2, #23aebc); font-size: 17px; box-shadow: 0 4px 16px rgba(35, 174, 188, .2); }
.eyebrow { margin: 29px 0 7px; color: var(--cyan); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.intro { margin: 8px 0 24px; color: var(--muted); font-size: 12px; }
form { display: grid; }
form label { margin: 0 0 7px; color: #c7d9dc; font-size: 11px; font-weight: 600; }
input { width: 100%; height: 44px; margin-bottom: 17px; padding: 0 12px; border: 1px solid rgba(143, 191, 202, .2); border-radius: 8px; outline: 0; color: var(--ink); background: #071c26; font-size: 12px; }
input::placeholder { color: #68848e; }
input:focus { border-color: rgba(66, 217, 220, .75); box-shadow: 0 0 0 3px rgba(66, 217, 220, .1); }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.toggle-password { position: absolute; top: 0; right: 7px; height: 44px; padding: 0 7px; border: 0; color: #76dadd; background: transparent; font-size: 10px; }
.toggle-password:focus-visible, .submit-button:focus-visible { outline: 3px solid rgba(245, 199, 93, .8); outline-offset: 3px; }
.form-error { min-height: 20px; margin: -7px 0 7px; color: #ff9c8d; font-size: 11px; line-height: 1.5; }
.submit-button { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid rgba(134, 255, 247, .4); border-radius: 8px; color: #06252b; background: linear-gradient(100deg, #5be5dc, #27bdc7); box-shadow: 0 7px 20px rgba(18, 167, 180, .2); font-size: 12px; font-weight: 800; transition: filter .16s ease, transform .16s ease; }
.submit-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .72; }
.login-note { margin: 18px 0 0; color: #79969f; font-size: 10px; line-height: 1.6; }

@media (max-width: 420px) {
  .login-card { padding: 27px 23px; }
}

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