:root {
  --bg: #00050a;
  --bg2: #050a15;
  --paper: #030712;
  --ink: #f0f6ff;
  --muted: #8ba3c7;
  --line: rgba(0, 180, 255, 0.16);
  --navy: #007bff;
  --sea: #00f2ff;
  --accent: #00b4ff;
  --accent2: #007bff;
  --accent-soft: rgba(0, 180, 255, 0.12);
  --moss: #00e5a0;
  --moss-soft: rgba(0, 229, 160, 0.12);
  --warn: #ffb347;
  --warn-soft: rgba(255, 179, 71, 0.12);
  --danger: #ff5c7a;
  --white: rgba(8, 16, 32, 0.92);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 28px rgba(0, 180, 255, 0.35);
  --radius: 16px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.auth-net {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(0, 123, 255, 0.22), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(0, 242, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  line-height: 1.5;
}

body.auth-net::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 85%, rgba(0, 123, 255, 0.12), transparent 45%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  padding: 1.75rem 1.6rem 1.5rem;
  backdrop-filter: blur(14px);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-logo img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.auth-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.auth-wordmark span { color: var(--sea); }

.auth-tag {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.auth-card h1 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.form { display: grid; gap: 0.75rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.86rem; }
.form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: rgba(0, 8, 20, 0.55);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus {
  outline: none;
  border-color: rgba(0, 242, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 114, 255, 0.35);
}
.btn-sea {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 114, 255, 0.35);
}

.hint { color: var(--muted); font-size: 0.84rem; }
.hint a { color: var(--sea); font-weight: 700; text-decoration: underline; }
.msg { padding: 0.75rem 0.9rem; border-radius: 10px; font-size: 0.9rem; }
.msg-ok { background: var(--moss-soft); color: var(--moss); }
.msg-err { background: var(--warn-soft); color: var(--warn); }
.hidden { display: none !important; }

.auth-shield {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-shield svg { flex: 0 0 auto; color: var(--sea); filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.35)); }

@media (max-width: 860px) {
  .auth-shell {
    place-items: start center;
    padding: max(0.75rem, env(safe-area-inset-top))
      max(0.65rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.65rem, env(safe-area-inset-left));
  }
  .auth-card {
    width: 100%;
    padding: 1rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  }
}

@media (max-width: 520px) {
  .auth-card { padding: 0.9rem 0.8rem; }
  .auth-card h1 { font-size: 1.25rem; }
  .form input { font-size: 16px; }
}
