/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --navy:       #1e293b;
  --navy-dark:  #0f172a;
  --amber:      #f97316;
  --amber-light:#fff7ed;
  --amber-border:#fed7aa;
  --green:      #22c55e;
  --green-light:#f0fdf4;
  --red:        #ef4444;
  --red-light:  #fef2f2;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-600:  #475569;
  --white:      #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: #f8fafc;
  min-height: 100vh;
}

/* ── Auth Page Layout ──────────────────────────────────────────────────────── */
.auth-page {
  display: flex;
  min-height: 100vh;
}

.auth-split-left {
  flex: 0 0 45%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-split-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.08);
  pointer-events: none;
}

.auth-split-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.05);
  pointer-events: none;
}

.auth-left-content {
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.auth-brand-logo i { color: var(--amber); font-size: 1.5rem; }
.auth-brand-logo span { color: var(--amber); }

.auth-left-headline {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.auth-left-sub {
  color: var(--slate-400);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.auth-trust-items {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.5rem;
}

.auth-trust-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--slate-400);
  font-size: .875rem;
  line-height: 1.5;
}

.auth-trust-item i {
  color: var(--amber);
  font-size: 1rem;
  margin-top: .1rem;
  flex-shrink: 0;
}

.auth-powered-by {
  font-size: .8rem;
  color: var(--slate-400);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
}

.auth-powered-by a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}

.auth-powered-by a:hover { text-decoration: underline; }

/* ── Right Panel ───────────────────────────────────────────────────────────── */
.auth-split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid var(--slate-200);
}

.auth-card-logo {
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.auth-card-logo i { color: var(--amber); }
.auth-card-logo span { color: var(--amber); }

.auth-card-header { margin-bottom: 1.75rem; }

.auth-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
}

.auth-card-subtitle {
  color: var(--slate-600);
  font-size: .95rem;
  line-height: 1.55;
}

/* ── Alert Boxes ───────────────────────────────────────────────────────────── */
.alert-custom {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.alert-custom i { flex-shrink: 0; margin-top: .1rem; }

.alert-danger-custom {
  background: var(--red-light);
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success-custom {
  background: var(--green-light);
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── Form Elements ─────────────────────────────────────────────────────────── */
.auth-form-group { margin-bottom: 1.25rem; }

.auth-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}

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

.auth-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 1rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.5rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

/* ── Primary Button ────────────────────────────────────────────────────────── */
.btn-auth-primary {
  width: 100%;
  height: 50px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s, transform .15s;
  margin-bottom: 1.25rem;
}

.btn-auth-primary:hover:not(:disabled) {
  background: var(--amber);
  transform: translateY(-1px);
}

.btn-auth-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* ── Footer Note ───────────────────────────────────────────────────────────── */
.auth-footer-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.auth-footer-note i { flex-shrink: 0; margin-top: .1rem; }

.auth-footer-links {
  text-align: center;
  font-size: .875rem;
}

.auth-footer-links a {
  color: var(--slate-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 500;
  transition: color .2s;
}

.auth-footer-links a:hover { color: var(--amber); }

/* ── Verify Page: Icon ─────────────────────────────────────────────────────── */
.verify-icon-wrap {
  width: 56px; height: 56px;
  background: var(--amber-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.verify-icon-wrap i {
  color: var(--amber);
  font-size: 1.6rem;
}

/* ── Demo Banner ───────────────────────────────────────────────────────────── */
.demo-otp-banner {
  background: var(--amber-light);
  border: 1.5px solid var(--amber-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.demo-otp-header {
  font-size: .8rem;
  font-weight: 700;
  color: #c2410c;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
}

.demo-otp-body {
  font-size: .9rem;
  color: var(--navy);
}

.demo-otp-code {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--amber);
  margin: .5rem 0;
}

.btn-autofill {
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: .4rem .9rem;
  font-family: var(--font-main);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .2s;
}

.btn-autofill:hover { background: #ea6c0a; }

/* ── OTP Input Boxes ───────────────────────────────────────────────────────── */
.otp-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1rem 0;
}

.otp-box {
  width: 52px; height: 56px;
  border: 2px solid var(--slate-200);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}

.otp-box:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
  background: var(--amber-light);
}

.otp-box:not(:placeholder-shown) {
  border-color: var(--navy);
  background: var(--slate-100);
}

.otp-box.otp-error {
  border-color: var(--red);
  background: var(--red-light);
}

.otp-divider {
  color: var(--slate-400);
  font-size: 1.2rem;
  padding: 0 .1rem;
  user-select: none;
}

/* ── Shake Animation ───────────────────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-8px); }
  30%, 70% { transform: translateX(8px); }
}

.shake { animation: shake 0.6s ease-in-out; }

/* ── Resend Row ────────────────────────────────────────────────────────────── */
.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .875rem;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.btn-resend {
  background: none;
  border: none;
  color: var(--navy);
  font-family: var(--font-main);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .4rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.btn-resend:hover { color: var(--amber); background: var(--amber-light); }

.resend-timer {
  font-size: .875rem;
  color: var(--slate-400);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .auth-card {
    padding: 2rem 1.25rem;
    border-radius: 12px;
  }
  .otp-box {
    width: 44px; height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .otp-box {
    width: 38px; height: 46px;
    font-size: 1.1rem;
  }
  .otp-input-group { gap: .35rem; }
}

/* ── Admin OTP Banner ─────────────────────────────────────────────────────── */
.admin-otp-banner {
  background: #f8f5ff;
  border: 1.5px solid #c4b5fd;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.admin-otp-header {
  font-size: .8rem;
  font-weight: 700;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
}

.admin-otp-body {
  font-size: .875rem;
  color: #374151;
  line-height: 1.55;
}
