/* ==========================================================================
   BAUDHYANTRAM SANSKRITI GURUKUL
   auth.css — Registration, Login, Forgot-Password pages
   ========================================================================== */

/* ─── Body ───────────────────────────────────────────────────────────────── */
.bsg-auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
}

/* ─── Split Layout ───────────────────────────────────────────────────────── */
.bsg-auth-split {
  display: flex;
  min-height: 100vh;
}

/* ─── Brand Panel (left, desktop only) ──────────────────────────────────── */
.bsg-auth-brand-panel {
  width: 44%;
  flex-shrink: 0;
  background: var(--navy, #1B2A4A);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(212,98,26,.22) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 80%, rgba(201,165,80,.1) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.bsg-auth-brand-inner {
  max-width: 420px;
  width: 100%;
}

.bsg-auth-logo-link { display: inline-block; margin-bottom: 2.5rem; }
.bsg-auth-brand-logo { height: 80px; width: auto; border-radius: 12px; }

.bsg-auth-brand-headline {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.bsg-auth-brand-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.bsg-auth-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.bsg-auth-stat { text-align: center; }
.bsg-auth-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--saffron, #D4621A);
  line-height: 1.1;
}
.bsg-auth-stat-lbl {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bsg-auth-shloka {
  border-left: 3px solid rgba(212,98,26,.5);
  padding: .9rem 1.2rem;
  background: rgba(255,255,255,.04);
  border-radius: 0 8px 8px 0;
}
.bsg-auth-shloka-text {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .3rem;
  font-weight: 500;
}
.bsg-auth-shloka-meaning {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  font-style: italic;
  margin: 0;
}

/* ─── Form Panel (right) ─────────────────────────────────────────────────── */
.bsg-auth-form-panel {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow-y: auto;
  min-height: 100vh;
}

.bsg-auth-form-inner {
  width: 100%;
  max-width: 500px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ─── Auth Card ──────────────────────────────────────────────────────────── */
.bsg-auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

.bsg-auth-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B2A4A;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.bsg-auth-card-sub {
  font-size: .875rem;
  color: #64748b;
  margin-bottom: 1.6rem;
}

/* ─── Form Controls ──────────────────────────────────────────────────────── */
.bsg-auth-label {
  display: block;
  font-size: .78rem;
  font-weight: 650;
  color: #374151;
  letter-spacing: .03em;
  margin-bottom: .38rem;
}

.bsg-auth-input {
  width: 100%;
  padding: .68rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .9rem;
  color: #1B2A4A;
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
  font-family: inherit;
}
.bsg-auth-input:focus {
  border-color: var(--saffron, #D4621A);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212,98,26,.12);
}

.bsg-auth-input-group {
  position: relative;
}
.bsg-auth-input-group .bsg-auth-input {
  padding-left: 2.8rem;
}
.bsg-auth-input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .95rem;
  pointer-events: none;
}

.bsg-auth-input-toggle {
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: .95rem;
  line-height: 1;
}
.bsg-auth-input-toggle:hover { color: #475569; }

/* ─── Role Selector ──────────────────────────────────────────────────────── */
.bsg-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .55rem;
  margin-bottom: 1.2rem;
}

.bsg-role-option { position: relative; }

.bsg-role-option input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.bsg-role-card {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  background: #f8fafc;
}

.bsg-role-card i {
  font-size: 1.1rem;
  color: #94a3b8;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  transition: color .15s;
}

.bsg-role-card-body { min-width: 0; }
.bsg-role-card-name {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.2;
  display: block;
}
.bsg-role-card-desc {
  font-size: .7rem;
  color: #94a3b8;
  display: block;
  margin-top: .08rem;
}

.bsg-role-option input:checked + .bsg-role-card {
  border-color: var(--saffron, #D4621A);
  background: #fff8f4;
  box-shadow: 0 0 0 3px rgba(212,98,26,.1);
}
.bsg-role-option input:checked + .bsg-role-card i { color: var(--saffron, #D4621A); }
.bsg-role-option input:checked + .bsg-role-card .bsg-role-card-name { color: var(--navy, #1B2A4A); }

/* ─── Verified Role Section ──────────────────────────────────────────────── */
.bsg-auth-verified-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: .9rem 1rem;
  font-size: .82rem;
  color: #92400e;
  margin-bottom: 1.2rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}
.bsg-auth-verified-notice i { font-size: .9rem; margin-top: .1rem; flex-shrink: 0; }

/* ─── Submit Button ──────────────────────────────────────────────────────── */
.bsg-auth-btn {
  width: 100%;
  padding: .78rem 1.5rem;
  background: var(--saffron, #D4621A);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .15s, box-shadow .18s;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
}
.bsg-auth-btn:hover {
  background: #c05419;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,98,26,.32);
}
.bsg-auth-btn:active { transform: translateY(0); }
.bsg-auth-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ─── Divider ────────────────────────────────────────────────────────────── */
.bsg-auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 500;
}
.bsg-auth-divider::before,
.bsg-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ─── Footer links ───────────────────────────────────────────────────────── */
.bsg-auth-footer {
  text-align: center;
  margin-top: 1.4rem;
  font-size: .84rem;
  color: #64748b;
}
.bsg-auth-footer a {
  color: var(--saffron, #D4621A);
  font-weight: 600;
  text-decoration: none;
}
.bsg-auth-footer a:hover { text-decoration: underline; }

/* ─── Error text ─────────────────────────────────────────────────────────── */
.bsg-auth-error {
  font-size: .78rem;
  color: #dc2626;
  margin-top: .3rem;
  display: none;
}
.bsg-auth-error.show { display: block; }

/* ─── Step tabs (registration multi-step) ───────────────────────────────── */
.bsg-auth-steps {
  display: flex;
  gap: 0;
  margin-bottom: 1.8rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.bsg-auth-step {
  flex: 1;
  padding: .55rem .5rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  position: relative;
  transition: background .15s, color .15s;
}
.bsg-auth-step:last-child { border-right: none; }
.bsg-auth-step.is-active {
  background: var(--saffron, #D4621A);
  color: #fff;
}
.bsg-auth-step.is-done {
  background: #f0fdf4;
  color: #16a34a;
}
.bsg-auth-step.is-done::after {
  content: '✓';
  margin-left: .3rem;
}

/* ─── Strength meter ─────────────────────────────────────────────────────── */
.bsg-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  margin-top: .45rem;
  overflow: hidden;
}
.bsg-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
  width: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .bsg-auth-form-panel { padding: 1.5rem 1rem; }
  .bsg-auth-card { padding: 1.6rem 1.3rem; border-radius: 14px; }
  .bsg-auth-card-title { font-size: 1.3rem; }
  .bsg-role-grid { grid-template-columns: 1fr; }
}
