:root {
  --bg-start: #071018;
  --bg-end: #101a2c;
  --accent: #3dd6c6;
  --accent-strong: #19b6c2;
  --accent-warm: #ff9c66;
  --panel: rgba(8, 17, 28, 0.72);
  --panel-strong: rgba(10, 21, 35, 0.88);
  --panel-border: rgba(169, 192, 219, 0.2);
  --text-main: #eef6ff;
  --text-muted: #9ab0c8;
  --danger: #fb7185;
  --success: #5eead4;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 18%, rgba(61, 214, 198, 0.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 156, 102, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(78, 165, 255, 0.16), transparent 28%),
    linear-gradient(145deg, var(--bg-start), var(--bg-end));
  overflow-x: hidden;
}

.auth-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
}

.auth-orb-a {
  width: 320px;
  height: 320px;
  top: -60px;
  left: -30px;
  background: rgba(61, 214, 198, 0.9);
  animation: floatA 14s ease-in-out infinite;
}

.auth-orb-b {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -120px;
  background: rgba(255, 156, 102, 0.72);
  animation: floatB 16s ease-in-out infinite;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 82%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.92fr);
  gap: 2.2rem;
  width: min(1120px, 92vw);
  min-height: 92vh;
  margin: 4vh auto;
  align-items: center;
}

.auth-hero {
  padding: 1rem 1rem 1rem 0.4rem;
  animation: fadeUp 700ms ease both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 214, 198, 0.28);
  background: rgba(61, 214, 198, 0.12);
  color: #abfff6;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-hero h1 {
  margin: 1rem 0 0.6rem;
  line-height: 0.98;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  letter-spacing: -0.04em;
}

.auth-hero p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 48ch;
}

.hero-proof-row {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-proof-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(169, 192, 219, 0.18);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(13, 26, 41, 0.8), rgba(8, 17, 28, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-proof-card strong {
  display: block;
  font-size: 1rem;
  color: #f7fbff;
}

.hero-proof-card span {
  display: block;
  margin-top: 0.24rem;
  color: var(--text-muted);
  font-size: 0.87rem;
}

.demo-credentials {
  margin-bottom: 1rem;
}

.demo-credentials code {
  color: #f3fbff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(169, 192, 219, 0.14);
  border-radius: 8px;
  padding: 0.14rem 0.38rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.84em;
}

.hero-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #dbe7f5;
  font-size: 0.96rem;
}

.hero-points li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 0 6px rgba(61, 214, 198, 0.08);
  flex: 0 0 auto;
}

.auth-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(8, 19, 31, 0.9), rgba(10, 21, 35, 0.8));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: fadeUp 840ms ease both;
}

.auth-card-glow {
  position: absolute;
  inset: -25% 20% auto -15%;
  height: 180px;
  background: radial-gradient(circle, rgba(61, 214, 198, 0.2), transparent 72%);
  pointer-events: none;
}

.auth-card h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.subtext {
  margin: 0.45rem 0 1.4rem;
  color: var(--text-muted);
}

.form-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.46rem;
  font-size: 0.92rem;
  color: #d7e2ef;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(169, 192, 219, 0.2);
  background: linear-gradient(180deg, rgba(13, 25, 40, 0.88), rgba(10, 18, 31, 0.88));
  color: #f8fbff;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  font-size: 0.96rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input::placeholder {
  color: #6f85a1;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(61, 214, 198, 0.7);
  box-shadow: 0 0 0 4px rgba(61, 214, 198, 0.12);
  transform: translateY(-1px);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #8ca3bf 50%),
    linear-gradient(135deg, #8ca3bf 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) calc(50% - 2px),
    calc(100% - 0.8rem) calc(50% - 2px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

button {
  margin-top: 0.45rem;
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: linear-gradient(100deg, var(--accent), var(--accent-strong) 55%, var(--accent-warm));
  color: #04131d;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(25, 182, 194, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(25, 182, 194, 0.3);
  filter: brightness(1.03);
}

button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  box-shadow: 0 12px 20px rgba(25, 182, 194, 0.16);
}

.feedback {
  min-height: 1.2rem;
  margin: 0.95rem 0 0;
  font-size: 0.9rem;
}

.feedback.error {
  color: var(--danger);
}

.feedback.success {
  color: var(--success);
}

.switch-link {
  margin: 1.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.switch-link a {
  color: #b1fff8;
  text-underline-offset: 3px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, 20px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, -16px);
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    margin: 1.2rem auto 2rem;
  }

  .auth-hero {
    padding: 0.5rem 0.2rem;
  }

  .auth-card {
    padding: 1.45rem;
  }
}

@media (max-width: 640px) {
  .hero-proof-row {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
