:root {
  --font-main: "Clash Display Variable", "Clash Display", "Manrope", "Segoe UI", sans-serif;
  --bg-0: #060b13;
  --bg-1: #0a111d;
  --bg-2: #0f1a2c;
  --panel: #111a2c;
  --line: #1f314f;
  --line-strong: #2b4368;
  --text: #e8efff;
  --muted: #98a8c5;
  --accent: #00d3a7;
  --danger: #ff6f8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 8% -10%, rgba(105, 231, 255, 0.15), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(0, 211, 167, 0.13), transparent 42%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-2) 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(155, 182, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 182, 231, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 88%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(460px, 100%);
  background:
    radial-gradient(circle at 18% 0%, rgba(105, 231, 255, 0.14), transparent 48%),
    linear-gradient(170deg, rgba(17, 28, 47, 0.95), rgba(11, 20, 35, 0.93));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.muted {
  margin: 0 0 14px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: #0c1628;
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
  outline: none;
  border-color: #2292a3;
  box-shadow: 0 0 0 3px rgba(91, 232, 255, 0.16);
}

button,
.btn-secondary {
  margin-top: 8px;
  border: 1px solid #0f7f6c;
  border-radius: 10px;
  background: linear-gradient(145deg, #073129, #09493f);
  color: #ddfff7;
  padding: 10px 12px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  transition: transform 160ms ease;
}

button:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  display: block;
  background: linear-gradient(145deg, #1a2d4a, #13243d);
  color: #c5d8f6;
  border-color: var(--line-strong);
}

.notice {
  border: 1px solid #2f4b75;
  background: rgba(11, 20, 35, 0.88);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0;
  color: #b9cff4;
}

.notice-error {
  border-color: #7f2f43;
  background: rgba(52, 14, 24, 0.72);
  color: #ffd9e2;
}

.switch {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.switch a {
  color: #87f1df;
}


.adsense-card {
  width: min(760px, 100%);
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(120, 140, 180, 0.28);
  background: rgba(10, 19, 34, 0.72);
  backdrop-filter: blur(16px);
}

.adsense-label {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ca7cf;
}

.adsense-unit {
  min-height: 96px;
}


@media (min-width: 1200px) {
  .auth-shell .adsense-card {
    position: fixed;
    top: 136px;
    right: 20px;
    width: 240px;
    margin: 0;
    z-index: 30;
  }

  .auth-shell .adsense-unit {
    min-height: 320px;
  }
}
