:root {
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-heading: "Sora", "Segoe UI", sans-serif;
  --auth-bg: #d2d5d8;
  --auth-panel: rgba(255, 255, 255, 0.76);
  --auth-panel-strong: rgba(15, 20, 24, 0.74);
  --auth-line: rgba(255, 255, 255, 0.44);
  --auth-line-dark: rgba(17, 24, 29, 0.08);
  --auth-text: #111a22;
  --auth-muted: #5d6770;
  --auth-white: #f8fbff;
  --auth-glow-cyan: rgba(0, 200, 255, 0.42);
  --auth-glow-lime: rgba(198, 243, 106, 0.34);
  --auth-accent: #00c8ff;
  --auth-accent-alt: #c6f36a;
  --auth-accent-fill:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 34%) center / 155% 155% no-repeat,
    linear-gradient(115deg, #00c8ff 0%, #19d7ff 18%, #2ae7c6 56%, #baf54d 100%) center / 138% 138% no-repeat;
  --auth-accent-fill-strong:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 32%) center / 155% 155% no-repeat,
    linear-gradient(115deg, #00c4ff 0%, #18d4ff 18%, #28e5c8 54%, #b8f34f 100%) center / 138% 138% no-repeat;
  --auth-accent-shadow: 0 22px 36px rgba(0, 200, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --auth-accent-shadow-strong: 0 28px 46px rgba(0, 200, 255, 0.24), 0 0 28px rgba(198, 243, 106, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  --auth-danger-bg: rgba(255, 93, 93, 0.12);
  --auth-danger-text: #a5323b;
  --auth-success-bg: rgba(63, 228, 209, 0.16);
  --auth-success-text: #0f6a60;
  --auth-info-bg: rgba(0, 200, 255, 0.12);
  --auth-info-text: #0f5a74;
  --auth-shadow: 0 28px 70px rgba(67, 74, 83, 0.24);
  --auth-radius-xl: 34px;
  --auth-radius-lg: 24px;
  --auth-radius-md: 16px;
  --auth-radius-sm: 12px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--auth-text);
  background:
    radial-gradient(620px 420px at 21% 30%, var(--auth-glow-cyan), transparent 63%),
    radial-gradient(560px 420px at 35% 34%, var(--auth-glow-lime), transparent 54%),
    radial-gradient(760px 520px at 82% 18%, rgba(255, 255, 255, 0.5), transparent 62%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.04) 80%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(180deg, #c7cbcf 0%, #e7eaee 48%, #d5d9dd 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 1px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0.02) 64px
    );
  opacity: 0.42;
  mix-blend-mode: screen;
}

body::after {
  background:
    radial-gradient(280px 180px at 78% 18%, rgba(255, 255, 255, 0.35), transparent 70%),
    radial-gradient(320px 200px at 16% 82%, rgba(0, 200, 255, 0.14), transparent 72%);
  filter: blur(12px);
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-shell {
  min-height: 100vh;
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.auth-promo,
.auth-stage {
  border-radius: var(--auth-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-promo {
  position: relative;
  padding: clamp(34px, 5vw, 54px);
  color: var(--auth-white);
  background:
    linear-gradient(145deg, #20282e, #3b454e);
}

.auth-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 200px at 24% 28%, rgba(0, 200, 255, 0.28), transparent 70%),
    radial-gradient(320px 220px at 41% 32%, rgba(198, 243, 106, 0.24), transparent 68%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.01) 34%, rgba(255, 255, 255, 0.05) 66%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.auth-promo::after {
  content: "";
  position: absolute;
  inset: auto 28px 26px 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06));
}

.auth-promo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  min-height: 100%;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  margin: -6px -10px;
  border-radius: 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  transition: transform 0.18s ease;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 34%, rgba(0, 200, 255, 0.26), transparent 56%),
    radial-gradient(circle at 36% 30%, rgba(198, 243, 106, 0.22), transparent 52%);
  opacity: 0;
  transform: scale(0.94);
  filter: blur(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: -1;
}

.auth-brand img {
  width: clamp(214px, 30vw, 320px);
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 22px rgba(6, 16, 24, 0.12));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.auth-brand:hover {
  transform: translateY(-1px);
}

.auth-brand:hover::before {
  opacity: 1;
  transform: scale(1);
}

.auth-brand:hover img {
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 16px 26px rgba(6, 16, 24, 0.14));
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.auth-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-alt));
  box-shadow: 0 0 0 5px rgba(0, 200, 255, 0.16);
}

.auth-hero {
  display: grid;
  gap: 18px;
}

.auth-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.93rem;
  font-weight: 600;
}

.auth-feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-alt));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
  flex: 0 0 10px;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.auth-stat {
  border-radius: var(--auth-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
}

.auth-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
}

.auth-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
}

.auth-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(180deg, #f2f4f6, #e7ebef);
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 200px at 82% 18%, rgba(255, 255, 255, 0.3), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  border-radius: calc(var(--auth-radius-xl) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(180deg, #f7f8fa, #eef1f4);
  box-shadow: 0 24px 56px rgba(72, 78, 85, 0.22);
  padding: 32px 30px 28px;
  z-index: 1;
}

.auth-card-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-card-header .auth-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.auth-card-header .auth-subtitle {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48535e;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17, 24, 29, 0.08);
  border-radius: var(--auth-radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--auth-text);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

input:focus {
  outline: none;
  border-color: rgba(0, 200, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.12), 0 18px 30px rgba(0, 200, 255, 0.06);
  transform: translateY(-1px);
}

.btn {
  appearance: none;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--auth-radius-sm);
  background: var(--auth-accent-fill);
  background-clip: padding-box;
  color: #09131b;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--auth-accent-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--auth-accent-fill-strong);
  box-shadow: var(--auth-accent-shadow-strong);
  filter: saturate(1.06);
}

.error-msg,
.success-msg {
  border-radius: var(--auth-radius-sm);
  padding: 11px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-msg {
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
}

.success-msg {
  background: var(--auth-success-bg);
  color: var(--auth-success-text);
}

.pending-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.16), rgba(198, 243, 106, 0.16));
  color: var(--auth-info-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pending-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.auth-desc {
  color: var(--auth-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 0 0 24px;
  text-align: center;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--auth-muted);
}

.auth-footer a,
.report-link,
.logout-link {
  color: #12465d;
  font-weight: 800;
}

.auth-footer a:hover,
.report-link:hover,
.logout-link:hover {
  text-decoration: underline;
}

.inline-form {
  margin: 0;
}

.logout-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 980px) {
  .auth-shell {
    width: min(920px, calc(100vw - 28px));
    grid-template-columns: 1fr;
  }

  .auth-promo {
    min-height: auto;
  }

  .auth-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: calc(100vw - 18px);
    padding: 12px 0;
    gap: 16px;
  }

  .auth-promo,
  .auth-stage {
    border-radius: 24px;
  }

  .auth-promo,
  .auth-stage,
  .auth-card {
    padding: 22px;
  }

  .auth-card {
    width: 100%;
  }

  .auth-stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand img {
    width: min(250px, 100%);
  }

  .auth-hero h1 {
    font-size: 2rem;
  }
}
