@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e6f0ff;
  background:
    radial-gradient(circle at 12% 18%, rgba(52, 211, 153, 0.18), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(59, 130, 246, 0.22), transparent 28%),
    radial-gradient(circle at 72% 72%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 48% 42%, rgba(45, 212, 191, 0.09), transparent 34%),
    linear-gradient(135deg, #06131d 0%, #081925 34%, #0b1f2d 58%, #06101b 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(22px);
}

.auth-page::before {
  width: 340px;
  height: 340px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 70%);
}

.auth-page::after {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 72%);
}

.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  place-content: center;
  padding: 32px;
}

.auth-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 380px);
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 1200px) and (min-height: 820px) {
  .auth {
    padding: 24px;
  }
}

.auth-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;
  width: 520px;
  height: 680px;
  transform: translateY(-50%);
  border-radius: 48px;
  background:
    radial-gradient(circle at 28% 24%, rgba(45, 212, 191, 0.18), transparent 30%),
    radial-gradient(circle at 72% 68%, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.auth-hero,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 32px;
  background: rgba(7, 18, 30, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-hero {
  min-height: 660px;
  padding: 26px 28px 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}

.auth-hero__surface,
.auth-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-hero__surface {
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.13), transparent 24%),
    radial-gradient(circle at 84% 26%, rgba(96, 165, 250, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.auth-hero__grid {
  opacity: 0.42;
  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: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

.auth-brand,
.auth-copy,
.auth-flow,
.auth-metrics,
.auth-card__head,
.auth-form,
.auth-lockbox {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  background: rgba(10, 22, 36, 0.56);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.28));
}

.auth-copy {
  max-width: 600px;
}

.auth-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.auth-title {
  margin: 14px 0 0;
  max-width: 10ch;
  font-size: clamp(38px, 4.3vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #f8fcff;
}

.auth-subtitle {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.54;
  color: rgba(216, 231, 255, 0.78);
}

.auth-flow {
  position: relative;
  min-height: 228px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 19, 31, 0.76), rgba(6, 15, 25, 0.92)),
    radial-gradient(circle at 50% 45%, rgba(45, 212, 191, 0.08), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-flow__halo,
.auth-flow__line {
  position: absolute;
  pointer-events: none;
}

.auth-flow__halo {
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.14);
}

.auth-flow__halo--one {
  inset: 28px 86px 28px 86px;
}

.auth-flow__halo--two {
  inset: 58px 132px 58px 132px;
  border-color: rgba(45, 212, 191, 0.12);
}

.auth-flow__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.34), transparent);
}

.auth-flow__line--one {
  top: 76px;
  left: 94px;
  right: 94px;
}

.auth-flow__line--two {
  bottom: 72px;
  left: 112px;
  right: 112px;
}

.auth-flow__node {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 116px;
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 22, 36, 0.84);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.34);
}

.auth-flow__node strong,
.auth-flow__node span {
  display: block;
}

.auth-flow__node strong {
  font-size: 12px;
  font-weight: 800;
  color: #f8fcff;
}

.auth-flow__node span {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(200, 219, 245, 0.74);
}

.auth-flow__node--core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 144px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.22), transparent 74%),
    rgba(9, 23, 38, 0.92);
  border-color: rgba(103, 232, 249, 0.24);
}

.auth-flow__node--core span {
  font-size: 12px;
  font-weight: 800;
  color: #9ff7ea;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-flow__node--ops { top: 30px; left: 30px; }
.auth-flow__node--finance { top: 28px; right: 30px; }
.auth-flow__node--intel { left: 50%; bottom: 18px; transform: translateX(-50%); }

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

.auth-metric {
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(9, 20, 32, 0.62);
}

.auth-metric__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ee7f9;
}

.auth-metric__value {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.48;
  color: rgba(221, 233, 251, 0.82);
}

.auth-card {
  min-height: 660px;
  z-index: 1;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(248, 252, 255, 0.94) 38%, rgba(241, 247, 252, 0.96) 100%),
    rgba(255, 255, 255, 0.84);
  color: #112031;
  box-shadow:
    0 34px 74px rgba(2, 6, 23, 0.22),
    0 12px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-card::before,
.auth-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.auth-card::before {
  width: 220px;
  height: 220px;
  top: -78px;
  right: -74px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.13), transparent 72%);
  opacity: 0.95;
}

.auth-card::after {
  width: 180px;
  height: 180px;
  bottom: -72px;
  left: -56px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1), transparent 74%);
  opacity: 0.9;
}

.auth-card__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  right: -160px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08), transparent 70%);
  pointer-events: none;
}

.auth-card__head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.auth-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}

.auth-card__logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.12));
}

.auth-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.12);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(56, 189, 248, 0.04));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-card__title {
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #0f172a;
}

.auth-card__text {
  margin: 12px 0 0;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.56;
  color: #5c7187;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 0;
}

.auth-label {
  font-size: 12px;
  color: #5f738c;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.auth-input {
  width: 100%;
  height: 52px;
  border-radius: 17px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0 18px;
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
  color: #0f172a;
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  border-color: rgba(14, 165, 233, 0.48);
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(125, 211, 252, 0.16),
    0 16px 30px rgba(14, 165, 233, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.auth-password {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password .auth-input {
  padding-right: 60px;
}

.auth-eye {
  position: absolute;
  right: 10px;
  border: 0;
  background: rgba(15, 23, 42, 0.035);
  color: #6b7d90;
  cursor: pointer;
  height: 38px;
  width: 40px;
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
}

.auth-eye:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5f738c;
  font-weight: 600;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #0ea5a4;
}

.auth-link {
  font-size: 13px;
  color: #0f766e;
  text-decoration: none;
  font-weight: 700;
}

.auth-link:hover {
  color: #0f9e94;
}

.auth-btn {
  height: 54px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #0f766e 0%, #14b8a6 42%, #38bdf8 100%);
  color: #f8fcff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 38px rgba(14, 165, 164, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(14, 165, 164, 0.30);
  filter: saturate(1.05);
}

.auth-btn:disabled,
.auth-form .is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-foot {
  text-align: center;
  font-size: 13px;
  color: #6b7d90;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.auth-foot::before {
  content: "Protected session • Encrypted access";
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #91a3b7;
}

.auth-lockbox {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), rgba(255, 245, 245, 0.96));
  color: #b42318;
  text-align: center;
}

.auth-lock-title {
  font-weight: 800;
  font-size: 14px;
}

.auth-lock-desc {
  margin-top: 4px;
  opacity: 0.86;
  font-size: 13px;
}

.auth-lock-timer {
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.terminal-auth {
  padding-inline: 24px;
}

.terminal-auth__shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.terminal-auth__card {
  min-height: auto;
  padding: 38px 40px 34px;
  justify-content: flex-start;
  gap: 22px;
}

.terminal-auth__brand {
  justify-content: center;
}

.terminal-auth__logo {
  height: 52px;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.14));
}

.terminal-auth__intro,
.terminal-auth__alerts {
  width: min(100%, 680px);
  margin: 0 auto;
}

.terminal-auth__intro {
  text-align: center;
}

.terminal-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.12);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(56, 189, 248, 0.04));
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.terminal-auth__title {
  margin: 18px auto 0;
  max-width: 11ch;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.98;
  color: #0f172a;
}

.terminal-auth__text {
  margin: 16px auto 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.7;
  color: #5c7187;
}

.terminal-auth__form {
  width: min(100%, 680px);
  margin: 0 auto;
  gap: 14px;
}

.terminal-auth__form .auth-btn {
  margin-top: 18px;
}

.terminal-auth__form .auth-foot {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
    transform: none;
  }

  .auth-shell::after {
    display: none;
  }

  .auth-hero,
  .auth-card {
    min-height: auto;
  }

  .auth-hero {
    padding-bottom: 28px;
  }
}

@media (max-height: 960px) {
  .auth {
    place-items: center;
    place-content: center;
    padding: 20px 24px;
  }

  .auth-shell {
    gap: 22px;
  }

  .auth-hero,
  .auth-card {
    min-height: auto;
  }

  .auth-hero {
    padding: 26px 28px 28px;
    gap: 22px;
  }

  .auth-card {
    padding: 26px 26px 24px;
    justify-content: flex-start;
  }

  .auth-title {
    font-size: clamp(40px, 5vw, 60px);
    max-width: 11ch;
  }

  .auth-subtitle {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
  }

  .auth-flow {
    min-height: 236px;
  }

  .auth-flow__halo--one {
    inset: 28px 92px;
  }

  .auth-flow__halo--two {
    inset: 62px 146px;
  }

  .auth-flow__line--one {
    top: 80px;
    left: 104px;
    right: 104px;
  }

  .auth-flow__line--two {
    bottom: 78px;
    left: 132px;
    right: 132px;
  }

  .auth-flow__node {
    min-width: 124px;
    padding: 12px 14px;
  }

  .auth-flow__node--ops {
    top: 28px;
    left: 28px;
  }

  .auth-flow__node--finance {
    top: 28px;
    right: 28px;
  }

  .auth-flow__node--intel {
    bottom: 18px;
  }

  .auth-metrics {
    gap: 12px;
  }

  .auth-metric {
    padding: 15px 15px 16px;
    border-radius: 18px;
  }

  .auth-metric__value {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .auth-card__head {
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .auth-card__logo {
    height: 48px;
  }

  .auth-card__title {
    margin-top: 10px;
    font-size: 27px;
  }

  .auth-card__text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .auth-form {
    gap: 10px;
    margin-top: 4px;
  }

  .auth-label {
    margin-top: 4px;
  }

  .auth-input {
    height: 50px;
    border-radius: 16px;
  }

  .auth-row {
    margin-top: 8px;
  }

  .auth-btn {
    height: 52px;
    margin-top: 12px;
  }

  .auth-foot {
    margin-top: 16px;
    padding-top: 14px;
  }
}

@media (max-height: 820px) {
  .auth {
    padding: 16px 20px;
  }

  .auth-shell {
    gap: 18px;
  }

  .auth-hero {
    padding: 22px 24px 24px;
    gap: 18px;
  }

  .auth-title {
    font-size: clamp(34px, 4.2vw, 52px);
  }

  .auth-subtitle {
    font-size: 15px;
  }

  .auth-flow {
    min-height: 210px;
  }

  .auth-flow__node strong {
    font-size: 12px;
  }

  .auth-flow__node span {
    font-size: 11px;
  }

  .auth-metric__label {
    font-size: 10px;
  }

  .auth-metric__value {
    font-size: 13px;
  }

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

  .auth-card__title {
    font-size: 24px;
  }

  .auth-card__text,
  .auth-foot,
  .auth-check,
  .auth-link {
    font-size: 12px;
  }

  .auth-foot::before {
    margin-bottom: 10px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .auth {
    padding: 18px;
    place-items: stretch;
    place-content: start;
  }

  .auth-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .auth-shell::after {
    display: none;
  }

  .auth-hero {
    display: none;
  }

  .auth-card {
    padding: 24px;
    border-radius: 26px;
    min-height: auto;
  }

  .auth-card__logo {
    height: 50px;
  }

  .terminal-auth {
    padding-inline: 18px;
  }

  .terminal-auth__card {
    padding: 28px 22px 24px;
    gap: 20px;
  }

  .terminal-auth__logo {
    height: 46px;
  }

  .terminal-auth__title {
    max-width: none;
    font-size: 36px;
  }

  .terminal-auth__text {
    font-size: 15px;
  }

  .auth-form {
    margin-top: 8px;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .auth {
    padding: 14px;
  }

  .auth-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .auth-card__head {
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .auth-card__logo {
    height: 44px;
  }

  .auth-card__title {
    font-size: 24px;
  }

  .auth-card__text {
    font-size: 13px;
    line-height: 1.5;
  }

  .auth-input {
    height: 48px;
    padding-inline: 14px;
  }

  .auth-btn {
    height: 50px;
  }

  .auth-eye {
    right: 12px;
  }
}
