/* ═══════════════════════════════════════════════════════
   Vercotech Auth v3.1 — Complete Redesign
   Brand: #2035C8 blue, #0f172a dark, white cards
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --vt-blue:        #2035C8;
  --vt-blue-dark:   #1628a0;
  --vt-blue-light:  #eef1ff;
  --vt-blue-mid:    #3b52e8;
  --vt-green:       #16a34a;
  --vt-red:         #dc2626;
  --vt-text:        #0f172a;
  --vt-text-sub:    #475569;
  --vt-muted:       #94a3b8;
  --vt-border:      #e2e8f0;
  --vt-bg:          #f8faff;
  --vt-card:        #ffffff;
  --vt-radius:      16px;
  --vt-shadow:      0 8px 40px rgba(32,53,200,0.13);
  --vt-shadow-sm:   0 2px 12px rgba(32,53,200,0.08);
}

/* ── Page wrapper: full-height split layout ───────────── */
.vt-auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  font-family: 'DM Sans', sans-serif;
}

/* ── Auth card ────────────────────────────────────────── */
.vt-auth-wrap {
  background: var(--vt-card);
  border-radius: 24px;
  box-shadow: var(--vt-shadow);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border: 1px solid rgba(32,53,200,0.08);
}

/* ── Card header strip ────────────────────────────────── */
.vt-auth-header {
  background: var(--vt-text);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vt-auth-logo {
  width: 34px; height: 34px;
  background: var(--vt-blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.vt-auth-brand-name  { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.1; }
.vt-auth-brand-sub   { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 1px; }

/* ── Card body ────────────────────────────────────────── */
.vt-auth-body { padding: 28px 32px 32px; }

/* ── Tab switcher ─────────────────────────────────────── */
.vt-auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 3px;
}
.vt-tab-btn {
  flex: 1; border: none; background: transparent;
  padding: 10px 0; border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--vt-text-sub);
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.vt-tab-btn.active {
  background: #fff;
  color: var(--vt-blue);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* ── Step heading block ───────────────────────────────── */
.vt-step-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.vt-step-icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--vt-blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}
.vt-step-title    { font-size: 17px; font-weight: 700; color: var(--vt-text); margin: 0 0 2px; }
.vt-step-subtitle { font-size: 13px; color: var(--vt-text-sub); margin: 0; line-height: 1.4; }
.vt-step-subtitle strong { color: var(--vt-blue); font-weight: 600; }

/* ── Form group ───────────────────────────────────────── */
.vt-form-group { margin-bottom: 14px; text-align: left; }
.vt-form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--vt-text-sub); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.vt-form-group input,
.vt-form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--vt-border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--vt-text);
  background: #fff; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
.vt-form-group input:focus {
  border-color: var(--vt-blue);
  box-shadow: 0 0 0 3px rgba(32,53,200,0.10);
}
.vt-form-group input::placeholder { color: #b0b8c8; }
.vt-form-group input:disabled     { background: #f8fafc; color: var(--vt-muted); }

.vt-phone-wrap { display: flex; gap: 8px; }
.vt-phone-wrap select {
  width: 120px; flex-shrink: 0;
  appearance: auto;
}
.vt-phone-wrap input { flex: 1; }

/* ── Primary button ───────────────────────────────────── */
.vt-btn-primary {
  display: block; width: 100%;
  background: var(--vt-blue);
  color: #fff; border: none;
  padding: 13px 24px; border-radius: 11px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  text-decoration: none; letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(32,53,200,0.30);
  margin-top: 6px;
}
.vt-btn-primary:hover  { background: var(--vt-blue-dark); box-shadow: 0 6px 20px rgba(32,53,200,0.38); }
.vt-btn-primary:active { transform: scale(0.98); }
.vt-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.vt-btn-ghost {
  display: inline-block;
  background: transparent; color: var(--vt-blue);
  border: 1.5px solid var(--vt-blue);
  padding: 10px 22px; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  text-decoration: none; font-size: 13px;
}

/* ── OTP boxes ────────────────────────────────────────── */
.vt-otp-inputs {
  display: flex; gap: 8px;
  justify-content: center;
  margin: 18px 0 6px;
}
.vt-otp-box {
  width: 50px; height: 58px;
  text-align: center;
  font-size: 22px; font-weight: 700;
  font-family: 'DM Mono', monospace;
  border: 2px solid var(--vt-border);
  border-radius: 12px;
  color: var(--vt-blue);
  background: #f8faff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  padding: 0;
}
.vt-otp-box:focus {
  border-color: var(--vt-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32,53,200,0.12);
}
.vt-otp-box.filled {
  background: var(--vt-blue-light);
  border-color: var(--vt-blue);
}

/* ── Helper text rows ─────────────────────────────────── */
.vt-error-msg {
  color: var(--vt-red); font-size: 12px;
  min-height: 18px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
}
.vt-resend-row {
  text-align: center; font-size: 12px;
  color: var(--vt-muted); margin: 10px 0 4px;
}
.vt-resend-row a    { color: var(--vt-blue); font-weight: 600; text-decoration: none; }
.vt-timer           { color: var(--vt-blue); font-weight: 600; }
.vt-auth-switch     { text-align: center; font-size: 13px; color: var(--vt-text-sub); margin-top: 14px; }
.vt-auth-switch a   { color: var(--vt-blue); font-weight: 600; text-decoration: none; }
.vt-back-link {
  display: block; text-align: center; margin-top: 12px;
  color: var(--vt-muted); font-size: 12px; text-decoration: none;
}
.vt-back-link:hover { color: var(--vt-blue); }

/* ── Step panels & steps ──────────────────────────────── */
.vt-auth-panel { display: none; }
.vt-auth-panel.active { display: block; }
.vt-step { display: none; }
.vt-step.active { display: block; }

/* ── Step progress dots ───────────────────────────────── */
.vt-step-dots {
  display: flex; gap: 5px;
  justify-content: center; margin-top: 20px;
}
.vt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vt-border);
  transition: all 0.2s;
}
.vt-dot.active { background: var(--vt-blue); width: 20px; border-radius: 4px; }
.vt-dot.done   { background: var(--vt-green); }

/* ── Divider ──────────────────────────────────────────── */
.vt-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; font-size: 11px; color: var(--vt-muted);
}
.vt-divider::before, .vt-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--vt-border);
}

/* ── Success animation ────────────────────────────────── */
.vt-success-anim {
  width: 68px; height: 68px;
  background: #dcfce7; color: #16a34a;
  border-radius: 50%; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  animation: vtPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes vtPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.vt-progress-bar {
  background: var(--vt-border); border-radius: 99px;
  height: 5px; margin-top: 18px; overflow: hidden;
}
.vt-progress-fill {
  height: 100%; background: var(--vt-blue);
  border-radius: 99px; width: 0;
  animation: vtFill 2.5s ease forwards;
}
@keyframes vtFill { to { width: 100%; } }

/* ── Already logged in ────────────────────────────────── */
.vt-already-in   { text-align: center; padding: 8px 0 4px; }
.vt-already-avatar {
  width: 68px; height: 68px;
  background: var(--vt-blue); color: #fff;
  font-size: 26px; font-weight: 800; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 16px rgba(32,53,200,0.30);
}
.vt-already-name  { font-size: 17px; font-weight: 700; color: var(--vt-text); margin-bottom: 3px; }
.vt-already-email { font-size: 13px; color: var(--vt-muted); margin-bottom: 6px; }
.vt-status-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--vt-text-sub);
  margin-bottom: 20px;
}
.vt-status-dot::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: #22c55e;
  display: inline-block;
}
.vt-already-actions { display: flex; gap: 10px; justify-content: center; }
.vt-already-actions .vt-btn-primary { width: auto; padding: 11px 22px; }

/* ── Navbar Dashboard button ──────────────────────────── */
.vt-nav-dashboard-btn {
  background: #fff !important; color: var(--vt-blue) !important;
  border: 2px solid #fff !important; border-radius: 8px !important;
  padding: 7px 16px !important; font-weight: 700 !important;
  text-decoration: none !important; font-size: 13px !important;
  transition: all 0.18s !important;
}
.vt-nav-dashboard-btn:hover {
  background: var(--vt-blue-light) !important;
  border-color: var(--vt-blue-light) !important;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 520px) {
  .vt-auth-body   { padding: 22px 20px 26px; }
  .vt-otp-box     { width: 42px; height: 50px; font-size: 19px; }
  .vt-auth-wrap   { border-radius: 18px; }
}
