/* JCOM auth pages — matches public landing theme */
:root {
  --lp-bg: #060b18;
  --lp-surface: #0f172a;
  --lp-card: #111827;
  --lp-border: rgba(148, 163, 184, 0.14);
  --lp-text: #e2e8f0;
  --lp-muted: #94a3b8;
  --lp-accent: #38bdf8;
  --lp-accent-2: #818cf8;
  --lp-glow: rgba(56, 189, 248, 0.35);
  --lp-radius: 20px;
  --lp-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--lp-font);
  background: var(--lp-bg);
  color: var(--lp-text);
  position: relative;
  overflow-x: hidden;
}

.auth-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(129, 140, 248, 0.15), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--lp-bg);
}

.auth-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.auth-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--lp-border);
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: blur(16px);
}

.auth-header-brand {
  text-decoration: none;
  line-height: 0;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  color: var(--lp-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.auth-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.auth-main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 100px);
  padding: 32px 20px 48px;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

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

.auth-card-head .login-brand {
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
}

.auth-card-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.auth-card-sub {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-card .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-muted);
  margin-bottom: 6px;
}

.auth-card .form-control {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  color: var(--lp-text);
  padding: 12px 14px;
}

.auth-card .form-control::placeholder {
  color: #64748b;
}

.auth-card .form-control:focus {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  color: #fff;
}

.auth-btn-primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  transition: 0.2s ease;
}

.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--lp-glow);
  color: #0f172a;
}

.auth-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.82rem;
}

.auth-link {
  color: var(--lp-accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  color: #7dd3fc;
}

.auth-card .alert {
  border-radius: 12px;
  font-size: 0.9rem;
}

.auth-card .alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.auth-card .alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.auth-card .btn-link {
  color: var(--lp-accent);
}

.auth-otp-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--lp-muted);
}

.auth-otp-hint strong {
  color: var(--lp-accent);
}

.auth-card .tracking-input {
  letter-spacing: 0.45rem;
  font-weight: 700;
}
