/* ===================================================
   auth.css — BombayTech Auth Pages (Login, Register, Staff)
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #1a56db;
  --brand-dark: #1047c0;
  --text:       #111827;
  --muted:      #6b7280;
  --border:     #e8ecf4;
  --bg:         #f8faff;
  --card:       #ffffff;
  --green:      #059669;
  --red:        #ef4444;
  --radius:     14px;
}

body { font-family: 'Plus Jakarta Sans', sans-serif; min-height: 100vh; background: var(--bg); }

/* ── SPLIT LAYOUT (Candidate Login / Register) ── */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
  width: 100%;
}
.register-split {
  grid-template-columns: 380px 1fr;
}

/* Left brand panel */
.auth-left {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #312e81 100%);
  color: #fff;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.auth-back {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 40px;
  display: inline-block;
  transition: color .2s;
}
.auth-back:hover { color: #fff; }

.auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.auth-logo-mark {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 14px;
}
.auth-brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; }
.auth-brand-sub  { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 1px; }

.auth-left-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}
.auth-left-sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 32px;
}
.auth-left-features { display: flex; flex-direction: column; gap: 12px; }
.alf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.alf-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* Right form panel */
.auth-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}

.auth-card {
  background: var(--card);
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 40px rgba(30,60,120,.1);
}
.auth-card-register {
  max-width: 520px;
  padding: 36px 40px;
}

.auth-title    { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.auth-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-link     { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--red); padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.auth-success { background: #d1fae5; color: #065f46; border-left: 3px solid var(--green); padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* Form elements */
.auth-form { }
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); margin-bottom: 7px;
}
.auth-field input, .auth-field select, .auth-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.auth-field input:focus, .auth-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.auth-field .hint { font-size: 11px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.req { color: var(--red); }

.auth-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-field-row  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.auth-checkbox input { width: auto; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.pass-eye {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--muted);
  padding: 0; line-height: 1;
}

.input-prefix-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: var(--muted); pointer-events: none;
}
.input-prefix-wrap input { padding-left: 28px; }

.auth-submit-btn {
  width: 100%; padding: 13px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
}
.auth-submit-btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.35); }

.auth-back-btn {
  padding: 13px 24px;
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: .2s;
}
.auth-back-btn:hover { border-color: var(--brand); color: var(--brand); }

.step-btns { display: flex; gap: 10px; margin-top: 4px; }
.step-btns .auth-submit-btn { flex: 1; }

.auth-divider {
  text-align: center; margin: 20px 0 14px;
  position: relative;
  color: var(--muted); font-size: 12px;
}
.auth-divider::before {
  content: ''; position: absolute;
  top: 50%; left: 0; right: 0; height: 1px;
  background: var(--border); z-index: 0;
}
.auth-divider span {
  background: var(--card);
  padding: 0 12px;
  position: relative; z-index: 1;
}

.auth-staff-link {
  display: block; text-align: center;
  color: var(--muted); font-size: 13px;
  text-decoration: none;
  padding: 10px; border: 1.5px solid var(--border);
  border-radius: 10px; transition: .2s;
}
.auth-staff-link:hover { border-color: var(--brand); color: var(--brand); }

/* Demo credentials */
.auth-demo {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.demo-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.demo-row span { font-size: 12px; color: var(--muted); font-weight: 600; }
.demo-fill-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 10px; font-size: 11px; font-family: inherit;
  color: var(--brand); cursor: pointer; transition: .15s;
}
.demo-fill-btn:hover { background: #eff4ff; border-color: var(--brand); }

/* ── MULTI-STEP FORM ── */
.form-step { display: none; }
.form-step.active { display: block; }

.step-indicator {
  display: flex; align-items: center;
  gap: 4px; margin-bottom: 24px;
}
.si-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  transition: .2s;
}
.si-dot.active { background: var(--brand); color: #fff; }
.si-dot.done   { background: var(--green); color: #fff; }
.si-line {
  flex: 1; height: 2px; background: var(--border); border-radius: 2px;
  transition: .2s;
}
.si-line.active { background: var(--brand); }

.step-title { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* Skill preview chips */
.skill-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 8px; }
.skill-chip { background: #eff4ff; color: var(--brand); border-radius: 100px; padding: 3px 10px; font-size: 11px; font-weight: 600; }

/* Password strength */
.pwd-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; height: 20px; }
.pws-bar { height: 6px; border-radius: 100px; flex: 1; transition: .3s; }
.pws-weak   .pws-bar { background: #ef4444; width: 25%; }
.pws-fair   .pws-bar { background: #f59e0b; width: 50%; }
.pws-good   .pws-bar { background: #3b82f6; width: 75%; }
.pws-strong .pws-bar { background: var(--green); width: 100%; }
.pws-lbl { font-size: 12px; font-weight: 700; }
.pws-weak   .pws-lbl { color: #ef4444; }
.pws-fair   .pws-lbl { color: #f59e0b; }
.pws-good   .pws-lbl { color: #3b82f6; }
.pws-strong .pws-lbl { color: var(--green); }

/* ── STAFF LOGIN ── */
.auth-bg-dark { background: #0f172a; }

.auth-staff-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-staff-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 44px 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.staff-back-link {
  display: inline-block;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .2s;
}
.staff-back-link:hover { color: rgba(255,255,255,.8); }

.staff-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.staff-logo-mark {
  width: 44px; height: 44px;
  background: var(--brand);
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 14px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.staff-brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.staff-brand-sub  { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }

.staff-title { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: #fff; }
.staff-sub   { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 24px; margin-top: 4px; }

/* Staff tabs */
.staff-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.stab {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
.stab:hover { background: rgba(255,255,255,.1); color: #fff; }
.stab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.stab-icon { font-size: 16px; }

.staff-demo-banner {
  background: rgba(26,86,219,.15);
  border: 1px solid rgba(26,86,219,.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Override auth-field for dark staff card */
.auth-staff-card .auth-field label { color: rgba(255,255,255,.55); }
.auth-staff-card .auth-field input {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.auth-staff-card .auth-field input:focus {
  border-color: var(--brand);
  background: rgba(255,255,255,.1);
}
.auth-staff-card .auth-field input::placeholder { color: rgba(255,255,255,.3); }
.auth-staff-card .auth-checkbox { color: rgba(255,255,255,.5); }
.auth-staff-card .auth-error { background: rgba(239,68,68,.15); color: #fca5a5; border-color: #ef4444; }

/* Staff credentials table */
.staff-creds {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.sc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.sc-row:last-child { border-bottom: none; }
.sc-role { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); min-width: 90px; }
.sc-fill {
  background: none; border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  padding: 5px 10px; font-size: 11px;
  color: rgb(147,197,253); font-family: inherit;
  cursor: pointer; transition: .15s;
}
.sc-fill:hover { background: rgba(255,255,255,.08); }

.staff-candidate-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}
.staff-candidate-link a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}
.staff-candidate-link a:hover { color: rgba(255,255,255,.8); }

/* ── OLD LOGIN (now staff) fallback ── */
.login-bg { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-wrap { max-width: 420px; width: 100%; }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .auth-split, .register-split { grid-template-columns: 1fr; }
  .auth-left { position: static; height: auto; padding: 28px 24px; min-height: auto; }
  .auth-right { padding: 24px 20px; }
  .auth-card { padding: 28px 24px; }
  .auth-card-register { padding: 24px 20px; }
  .auth-field-2col { grid-template-columns: 1fr; gap: 0; }
  .auth-staff-card { padding: 32px 24px; }
}
