:root {
  --bg-top: #eff3ff;
  --bg-bottom: #d9e4ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(247, 250, 255, 0.92);
  --surface-border: rgba(24, 42, 98, 0.12);
  --surface-border-soft: rgba(24, 42, 98, 0.08);
  --surface-shadow: 0 32px 80px rgba(19, 33, 76, 0.16);
  --surface-shadow-soft: 0 30px 70px rgba(19, 33, 76, 0.15);
  --text-main: #14203e;
  --text-muted: #627094;
  --input-bg: rgba(245, 248, 255, 0.98);
  --input-border: rgba(25, 48, 117, 0.14);
  --input-focus: #5068ff;
  --button-top: #192d79;
  --button-bottom: #101a4f;
  --button-shadow: rgba(16, 26, 79, 0.28);
  --accent: #bcff24;
  --accent-soft: rgba(188, 255, 36, 0.24);
  --violet-soft: rgba(127, 102, 255, 0.24);
  --logo-ring: rgba(80, 104, 255, 0.08);
  --link: #122b87;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --page-width: 1120px;
  --transition-fast: 160ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Aptos, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(127, 102, 255, 0.22), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(188, 255, 36, 0.18), transparent 24%),
    linear-gradient(160deg, var(--bg-top) 0%, #eef2ff 42%, var(--bg-bottom) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
  z-index: 0;
}

body::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
  background: rgba(127, 102, 255, 0.18);
}

body::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -140px;
  background: rgba(188, 255, 36, 0.14);
}

a {
  color: inherit;
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  z-index: 1;
}

.page-inner,
.content-wrap,
.site-footer {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.site-footer {
  padding: 0 0 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 43, 135, 0.18);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer a:hover {
  color: #0e1f65;
  border-color: rgba(14, 31, 101, 0.4);
}

.login-page .page-inner {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 40px 0 24px;
}

.auth-shell {
  width: min(100%, 460px);
  position: relative;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius-xl) + 8px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12));
  transform: translateY(16px) scale(0.98);
  z-index: 0;
  filter: blur(2px);
}

.auth-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(16px);
}

.brand-mark {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 255, 0.9)),
    var(--logo-ring);
  border: 1px solid rgba(80, 104, 255, 0.1);
  box-shadow:
    0 18px 34px rgba(45, 68, 148, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(78, 64, 151, 0.22);
}

.eyebrow,
.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 62, 0.05);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.eyebrow {
  justify-content: center;
  margin: 0 auto 12px;
  width: fit-content;
}

.eyebrow::before,
.policy-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(188, 255, 36, 0.08);
}

.login-page h1,
.policy-page h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.login-page h1 {
  text-align: center;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.05;
}

.lead {
  margin: 12px auto 28px;
  max-width: 28ch;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  padding: 15px 16px;
  font: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.field input::placeholder {
  color: #8a95b4;
}

.field input:focus {
  border-color: var(--input-focus);
  box-shadow:
    0 0 0 4px rgba(80, 104, 255, 0.12),
    0 10px 24px rgba(58, 84, 177, 0.12);
  transform: translateY(-1px);
}

.submit-button {
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--button-top), var(--button-bottom));
  box-shadow:
    0 20px 28px -18px var(--button-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 32px -18px rgba(16, 26, 79, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: saturate(1.08);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  transform: none;
  filter: saturate(0.94);
  opacity: 0.9;
}

.form-note {
  margin: 10px 0 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-muted);
}

.form-note.is-error {
  color: #b42318;
}

.form-note.is-info {
  color: #2457a6;
}

.form-note.is-success {
  color: #175c2f;
}

.accent-line {
  width: 92px;
  height: 5px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(188, 255, 36, 0.14), var(--accent), rgba(188, 255, 36, 0.14));
  box-shadow: 0 0 28px var(--accent-soft);
}

.policy-page .content-wrap {
  padding: 42px 0 24px;
}

.policy-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--surface-shadow-soft);
  padding: 38px 34px 32px;
  backdrop-filter: blur(14px);
}

.policy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.back-link {
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.policy-page h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.02;
}

.intro {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
}

.section-list {
  display: grid;
  gap: 18px;
}

.section {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid var(--surface-border-soft);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 15px;
}

@media (max-width: 720px) {
  .page-inner,
  .content-wrap,
  .site-footer {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .login-page .page-inner,
  .policy-page .content-wrap {
    padding: 22px 0 18px;
  }

  .auth-shell {
    width: 100%;
  }

  .auth-card,
  .policy-card {
    border-radius: 24px;
  }

  .auth-card {
    padding: 28px 20px 22px;
  }

  .policy-card {
    padding: 26px 18px 22px;
  }

  .brand-mark {
    width: 110px;
    height: 110px;
    border-radius: 28px;
  }

  .login-page h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .policy-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 18px 16px;
  }

  .site-footer {
    padding-bottom: 18px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  body::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -70px;
  }

  body::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -110px;
  }

  .auth-card {
    padding: 24px 16px 20px;
  }

  .field input,
  .submit-button {
    padding: 14px;
  }
}
