@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Student Registration Flow — style.css
   Arhatic Pranayoga | Enriching lives since 1990
   ============================================================ */

/* ----- CSS Variables ------------------------------------------ */
:root {
  --primary: #7138cc;
  --primary-dark: #5821a8;
  --primary-light: #8c5be8;
  --primary-50: #FAF7FD;
  --primary-100: #F4EEFC;
  --primary-200: #E8DBF8;
  --gold: #fcba14;
  --gold-light: #fed876;
  --gold-dark: #d99a07;
  --gold-glow: rgba(252, 186, 20, 0.4);
  --accent: #fcba14;
  --dark-plum: #241144;
  --deep-plum: #190932;
  --success: #10B981;
  --success-light: #D1FAE5;
  --success-bg: #ECFDF5;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --warning: #DD6B20;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 4px rgba(113, 56, 204, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 10px rgba(113, 56, 204, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px rgba(113, 56, 204, 0.12), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px rgba(113, 56, 204, 0.16), 0 10px 10px rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ----- Reset & Base ------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================================================================
   LANDING PAGE (Step 1 — index.html)
   ================================================================ */

/* ----- Top Navbar ---------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand .brand-logo svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.navbar-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-links li a:hover {
  color: var(--primary);
}

.navbar-links li a .dropdown-arrow {
  width: 14px;
  height: 14px;
 }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.navbar-phone svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ----- Hero Section -------------------------------------------- */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 50%, var(--white) 100%);
  padding: 80px 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
}

.hero-content {
  max-width: 680px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-register:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-explore:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ----- Stats Bar ----------------------------------------------- */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 48px;
  border-right: 1px solid var(--gray-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ================================================================
   REGISTRATION PAGES (Steps 2–5)
   ================================================================ */

/* ----- Auth Layout --------------------------------------------- */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 18% 18%, rgba(113, 56, 204, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 82% 82%, rgba(252, 186, 20, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(244, 238, 252, 0.65) 0%, transparent 100%),
              linear-gradient(145deg, #FAF7FD 0%, #F5EEFC 50%, #ECE1F9 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.auth-layout::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(113, 56, 204, 0.22) 0%, rgba(140, 91, 232, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.auth-layout::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(252, 186, 20, 0.2) 0%, rgba(252, 186, 20, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

/* Background floating spiritual aura orbs */
.auth-aura-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
  opacity: 0.65;
}

.auth-aura-orb.orb-1 {
  top: 15%;
  left: 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(113, 56, 204, 0.25) 0%, transparent 70%);
}

.auth-aura-orb.orb-2 {
  bottom: 12%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 186, 20, 0.22) 0%, transparent 70%);
}

/* ----- Auth Card (Compact Wide Centered Glassmorphic) --------- */
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(113, 56, 204, 0.15);
  border-radius: 22px;
  box-shadow: 0 20px 50px -10px rgba(113, 56, 204, 0.18),
              0 0 30px rgba(252, 186, 20, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 520px;
  padding: 26px 36px 20px;
  position: relative;
  z-index: 1;
  animation: cardSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-wide {
  max-width: 660px;
}

/* ----- Split Auth Card (2-Column 6-6 Layout) ------------------- */
.auth-card-split {
  max-width: 960px;
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 25px 60px -10px rgba(113, 56, 204, 0.22),
              0 0 40px rgba(252, 186, 20, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(113, 56, 204, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  z-index: 1;
  animation: cardSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.auth-split-visual {
  background: linear-gradient(150deg, #6c2ec7 0%, #561ea8 50%, #44148a 100%);
  padding: 34px 30px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-split-visual::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(252, 186, 20, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-split-visual::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(168, 115, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.visual-brand {
  position: relative;
  z-index: 1;
}

.visual-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.visual-logo-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #fcba14, #ffe38f, #d49502);
  box-shadow: 0 0 22px rgba(252, 186, 20, 0.55), 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.visual-logo-ring:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(252, 186, 20, 0.75);
}

.visual-logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.visual-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.visual-brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fcba14;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.visual-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 8px;
}

.visual-headline span {
  background: linear-gradient(135deg, #fcba14, #ffe494);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-description {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 18px;
}

.visual-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.visual-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.visual-feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(252, 186, 20, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateX(4px);
}

.visual-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(252, 186, 20, 0.22);
  color: #fcba14;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.visual-feature-item:hover .visual-feature-icon {
  background: rgba(252, 186, 20, 0.35);
  color: #ffe494;
}

.visual-feature-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}

.visual-footer {
  position: relative;
  z-index: 1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right Side - Form Container */
.auth-split-form {
  padding: 30px 34px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.split-form-header {
  margin-bottom: 14px;
}

.split-form-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-plum);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.split-form-header p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

@media (max-width: 860px) {
  .auth-card-split {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auth-split-visual {
    padding: 24px 20px;
  }
  .visual-features, .visual-footer {
    display: none;
  }
  .auth-split-form {
    padding: 24px 20px;
  }
}

/* ----- Auth Header --------------------------------------------- */
.auth-header {
  text-align: center;
  margin-bottom: 16px;
}

.auth-header .auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sacred-logo-ring {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #fcba14, #ffdf85, #d49502);
  box-shadow: 0 0 20px rgba(252, 186, 20, 0.45), 0 4px 12px rgba(113, 56, 204, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sacred-logo-ring:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(252, 186, 20, 0.6), 0 6px 16px rgba(113, 56, 204, 0.22);
}

.sacred-logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.auth-brand-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.auth-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-plum);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.auth-brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-plum);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.auth-header p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.35;
}

/* ----- Step Indicator ------------------------------------------ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: var(--transition);
}

.step-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

.step-dot.completed {
  background: var(--primary-light);
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 24px;
}

/* ----- Form Groups --------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  cursor: pointer;
  pointer-events: all;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrapper .toggle-password:hover {
  color: var(--gray-600);
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid rgba(113, 56, 204, 0.18);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  color: var(--dark-plum);
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(113, 56, 204, 0.14), 0 2px 8px rgba(113, 56, 204, 0.08);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--primary-light);
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.form-input.no-icon {
  padding-left: 14px;
}

.form-input.has-toggle {
  padding-right: 44px;
}

/* ----- Select Dropdown ----------------------------------------- */
.form-select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* ----- Two Column Form Layout ---------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ----- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  width: 100%;
  padding: 14px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(113, 56, 204, 0.32);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 8px 24px rgba(113, 56, 204, 0.42), 0 0 14px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(113, 56, 204, 0.3);
}

.btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.btn-group .btn {
  flex: 1;
  padding: 14px;
  font-size: 0.95rem;
}

/* ----- Footer Text --------------------------------------------- */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ================================================================
   OTP VERIFICATION (Step 3)
   ================================================================ */

.otp-sent-info {
  text-align: center;
.otp-sent-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.otp-sent-info {
  text-align: center;
  margin-bottom: 20px;
}

.otp-sent-info p {
  font-size: 0.84rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.otp-sent-info .phone-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--dark-plum);
}

.otp-sent-info .change-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.76rem;
  background: rgba(113, 56, 204, 0.08);
  border: 1px solid rgba(113, 56, 204, 0.2);
  padding: 2px 9px;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.otp-sent-info .change-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* ----- OTP Input Boxes ----------------------------------------- */
.otp-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp-input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-plum);
  border: 2px solid rgba(113, 56, 204, 0.2);
  border-radius: var(--radius-lg);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(113, 56, 204, 0.16), 0 2px 8px rgba(113, 56, 204, 0.1);
  transform: translateY(-2px);
}

.otp-input.filled {
  border-color: var(--primary);
  background: var(--primary-50);
}

/* ----- Timer & Resend ------------------------------------------ */
.otp-timer-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 16px;
  min-height: 36px;
}

.otp-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-600);
  background: rgba(113, 56, 204, 0.05);
  border: 1px solid rgba(113, 56, 204, 0.14);
  padding: 6px 14px;
  border-radius: 30px;
}

.otp-timer svg {
  color: var(--primary);
  flex-shrink: 0;
}

.otp-timer .timer-value {
  font-weight: 800;
  color: var(--primary);
  background: rgba(113, 56, 204, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.resend-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #FAF6FD;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(113, 56, 204, 0.12);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.resend-link:hover:not(:disabled) {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(113, 56, 204, 0.28);
  transform: translateY(-1px);
}

.resend-link:hover:not(:disabled) svg {
  transform: rotate(-45deg);
}

.resend-link svg {
  transition: transform 0.25s ease;
}

.resend-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-500);
  box-shadow: none;
}

.change-mobile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 12px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(113, 56, 204, 0.24);
  border-radius: 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(113, 56, 204, 0.04);
  outline: none;
}

.change-mobile-link:hover {
  background: #FAF6FD;
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(113, 56, 204, 0.12);
  transform: translateY(-1px);
}

.change-mobile-link svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ================================================================
   SUCCESS PAGE (Step 5)
   ================================================================ */

.success-container {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--success);
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
}

.success-message {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-details {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.success-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.success-detail-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.success-detail-row .detail-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.success-detail-row .detail-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}

.qr-code-box {
  width: 120px;
  height: 120px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.qr-code-box svg {
  width: 100px;
  height: 100px;
  color: var(--gray-800);
}

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 8px;
}

.note-box svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.note-box p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
  text-align: left;
}

/* ================================================================
   FLOW DIAGRAM PAGE (flow.html)
   ================================================================ */

.flow-page {
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.flow-page-title {
  text-align: center;
  margin-bottom: 48px;
}

.flow-page-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.flow-page-title p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: var(--transition);
}

.flow-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.flow-step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.flow-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.flow-step-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.flow-step-card .flow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.flow-step-card .flow-link:hover {
  gap: 8px;
}

.flow-step-card .flow-link svg {
  width: 14px;
  height: 14px;
}

.flow-arrow {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-light);
  z-index: 1;
}

.flow-arrow svg {
  width: 20px;
  height: 20px;
}

.flow-step-card:nth-child(3n) .flow-arrow {
  display: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 60px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-phone {
    display: none;
  }

  .hero {
    padding: 60px 20px 40px;
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats-bar {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 0;
  }

  .stat-item {
    padding: 10px 20px;
    border-right: none;
    flex: 1 1 50%;
    border-bottom: 1px solid var(--gray-200);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .auth-layout {
    padding: 20px 16px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .otp-input {
    width: 42px;
    height: 48px;
    font-size: 1.1rem;
  }

  .otp-input-group {
    gap: 6px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow-arrow {
    display: none !important;
  }

  .flow-page {
    padding: 40px 16px;
  }

  .success-detail-row {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .auth-card-wide {
    max-width: 100%;
  }

  .otp-input {
    width: 38px;
    height: 44px;
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column-reverse;
  }

  .btn-group .btn {
    width: 100%;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
}

/* ================================================================
   UNIFIED LOGIN TABS + MODE SELECTION + PORTAL SHELL
   ================================================================ */

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: #F1EBF9;
  border: 1px solid rgba(113, 56, 204, 0.14);
  border-radius: 12px;
}

.login-tab {
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6B5B82;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
}

.login-tab:hover:not(.active) {
  color: #7138cc;
  background: rgba(113, 56, 204, 0.06);
}

.login-tab.active {
  background: #FFFFFF;
  color: #7138cc;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(113, 56, 204, 0.18), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.channel-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
  min-height: 1.2em;
}

.channel-hint-email {
  color: var(--primary);
  font-weight: 600;
}

.channel-hint-mobile {
  color: var(--success);
  font-weight: 600;
}

/* ----- Select / Switch Mode Grid ------------------------------ */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.mode-card-form {
  margin: 0;
  display: flex;
}

.mode-card {
  width: 100%;
  text-align: left;
  border: 1.5px solid rgba(113, 56, 204, 0.16);
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(113, 56, 204, 0.05);
  position: relative;
  outline: none;
  box-sizing: border-box;
}

.mode-card:hover:not(.disabled) {
  border-color: var(--primary);
  box-shadow: 0 14px 30px -4px rgba(113, 56, 204, 0.22), 0 0 16px rgba(252, 186, 20, 0.12);
  transform: translateY(-3px);
}

.mode-card.active-current {
  border-color: var(--primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6FD 100%);
  box-shadow: 0 6px 20px rgba(113, 56, 204, 0.12);
}

.mode-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--gray-50);
}

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

.mode-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(113, 56, 204, 0.1);
  color: var(--primary);
  border: 1px solid rgba(113, 56, 204, 0.18);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mode-card.mode-student .mode-card-icon {
  background: rgba(113, 56, 204, 0.1);
  color: #7138cc;
  border-color: rgba(113, 56, 204, 0.22);
}

.mode-card.mode-trainer .mode-card-icon {
  background: rgba(252, 186, 20, 0.14);
  color: #b57e04;
  border-color: rgba(252, 186, 20, 0.32);
}

.mode-card.mode-admin .mode-card-icon {
  background: rgba(68, 20, 138, 0.12);
  color: #44148a;
  border-color: rgba(68, 20, 138, 0.25);
}

.mode-card:hover:not(.disabled) .mode-card-icon {
  transform: scale(1.08);
}

.mode-card-icon svg {
  width: 24px;
  height: 24px;
}

.mode-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(113, 56, 204, 0.12);
  color: var(--primary);
  border: 1px solid rgba(113, 56, 204, 0.25);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mode-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-plum);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.mode-card p {
  font-size: 0.82rem;
  color: #55486B;
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
  min-height: 2.8em;
}

.mode-cta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  background: rgba(113, 56, 204, 0.08);
  border: 1px solid rgba(113, 56, 204, 0.18);
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: auto;
  transition: all 0.2s ease;
}

.mode-cta-pill svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.mode-card:hover:not(.disabled) .mode-cta-pill {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(113, 56, 204, 0.28);
}

.mode-card:hover:not(.disabled) .mode-cta-pill svg {
  transform: translateX(4px);
}

.mode-badge-warn {
  display: inline-block;
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 53, 69, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-body {
  background: var(--gray-50);
  min-height: 100vh;
}

.portal-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--gray-900);
}

.portal-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.portal-mode-pill {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-switch-mode {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--primary-200);
  background: var(--white);
}

.btn-switch-mode:hover {
  background: var(--primary-50);
}

.portal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.portal-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 20px 0;
}

.portal-sidebar ul {
  list-style: none;
}

.portal-sidebar a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
}

.portal-sidebar a:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.portal-main {
  padding: 32px;
}

.portal-main h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.portal-lead {
  color: var(--gray-500);
  margin-bottom: 24px;
  max-width: 640px;
}

.portal-placeholder {
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  color: var(--gray-500);
  text-align: center;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.portal-table th {
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
}

.portal-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-form-row input {
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  min-width: 140px;
}

.portal-muted { color: var(--gray-500); font-size: 0.85rem; }
.portal-alert { color: #b42318; margin-bottom: 12px; }

.portal-sidebar .menu-group-label {
  display: block;
  padding: 10px 12px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }
}