
:root {
  --auth-bg: #050816;
  --auth-panel: rgba(12, 18, 34, .84);
  --auth-panel-strong: rgba(13, 20, 38, .96);
  --auth-border: rgba(255, 255, 255, .10);
  --auth-text: #f8fafc;
  --auth-muted: #94a3b8;
  --auth-accent: #2dd4bf;
  --auth-accent-rgb: 45, 212, 191;
  --auth-accent-ink: #04120f;
  --auth-danger: #fb7185;
  --auth-success: #34d399;
}

* { box-sizing: border-box; }

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

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--auth-accent-rgb), .18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(59, 130, 246, .13), transparent 30%),
    linear-gradient(135deg, #030712 0%, #0f172a 48%, #050816 100%);
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .78fr);
  gap: 26px;
  align-items: center;
}

.auth-hero,
.auth-card {
  border: 1px solid var(--auth-border);
  background: linear-gradient(180deg, rgba(15,23,42,.74), rgba(2,6,23,.88));
  box-shadow: 0 26px 88px rgba(0,0,0,.44);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.auth-hero {
  position: relative;
  min-height: 570px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--auth-accent-rgb), .26), transparent 68%);
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 46px;
}

.auth-app-icon,
.auth-mobile-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 42px rgba(var(--auth-accent-rgb), .16);
}

.auth-app-icon {
  width: 62px;
  height: 62px;
  border-radius: 19px;
}

.auth-app-icon img,
.auth-mobile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-copy small,
.auth-eyebrow {
  display: block;
  color: var(--auth-accent);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .71rem;
  font-weight: 850;
}

.auth-brand-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

.auth-title {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 900;
}

.auth-title span { color: var(--auth-accent); }

.auth-description {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--auth-muted);
  line-height: 1.65;
}

.auth-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-feature {
  min-height: 104px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
}

.auth-feature i {
  color: var(--auth-accent);
  margin-bottom: 12px;
}

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

.auth-feature strong { font-size: .89rem; }
.auth-feature span {
  margin-top: 3px;
  color: var(--auth-muted);
  font-size: .76rem;
  line-height: 1.35;
}

.auth-card {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-mobile-icon {
  display: none;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 21px;
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 9px;
  font-size: 1.7rem;
  font-weight: 880;
  letter-spacing: -.04em;
}

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

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

.auth-field label,
.auth-field > span {
  display: block;
  margin: 0 0 8px;
  color: #d6deeb;
  font-size: .81rem;
  font-weight: 800;
}

.auth-input-wrap { position: relative; }

.auth-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(248,250,252,.40);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(2,6,23,.55);
  color: var(--auth-text);
  padding: 0 48px 0 46px;
  outline: none;
  font: inherit;
  font-weight: 650;
  transition: .18s ease;
}

.auth-input.no-leading-icon { padding-left: 18px; }
.auth-input::placeholder { color: rgba(248,250,252,.32); }

.auth-input:focus {
  border-color: var(--auth-accent);
  background: rgba(2,6,23,.76);
  box-shadow: 0 0 0 4px rgba(var(--auth-accent-rgb), .18);
}

.auth-otp {
  text-align: center;
  padding: 0 16px;
  letter-spacing: .34em;
  font-size: 1.45rem;
  font-weight: 850;
}

.auth-password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.055);
  color: rgba(248,250,252,.66);
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--auth-accent);
  background: rgba(var(--auth-accent-rgb), .13);
}

.auth-submit,
.auth-secondary {
  min-height: 54px;
  border-radius: 16px;
  border: 0;
  padding: 0 18px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--auth-accent-ink);
  background: linear-gradient(135deg, var(--auth-accent), rgba(var(--auth-accent-rgb), .72));
  box-shadow: 0 15px 34px rgba(var(--auth-accent-rgb), .19);
}

.auth-submit:hover { transform: translateY(-1px); }
.auth-submit:disabled { opacity: .65; cursor: wait; }

.auth-secondary {
  width: 100%;
  color: var(--auth-muted);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
}

.auth-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  color: var(--auth-muted);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}

.auth-link:hover { color: var(--auth-accent); }

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 15px;
  font-size: .84rem;
  line-height: 1.48;
}

.auth-alert.error {
  color: #fecdd3;
  border: 1px solid rgba(251,113,133,.22);
  background: rgba(251,113,133,.10);
}

.auth-alert.info,
.auth-alert.success {
  color: #dbeafe;
  border: 1px solid rgba(var(--auth-accent-rgb), .22);
  background: rgba(var(--auth-accent-rgb), .10);
}

.auth-security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(148,163,184,.68);
  font-size: .75rem;
  font-weight: 750;
}

.auth-hidden { display: none !important; }

.auth-caps {
  display: none;
  margin-top: 8px;
  color: #fde68a;
  font-size: .77rem;
}
.auth-caps.visible { display: block; }

.auth-build {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 18px;
  color: rgba(148,163,184,.70);
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
    min-height: calc(100vh - 44px);
  }
  .auth-hero { display: none; }
  .auth-mobile-icon { display: grid; }
}

@media (max-width: 520px) {
  .auth-shell { padding: 14px; }
  .auth-card { padding: 23px 19px; border-radius: 24px; }
}
