/* ═══════════════════════════════════════════════════════════════
   Hirecamp Academy – Authentication System
   auth.css – split layout, branding panel, auth cards, dashboard
   ═══════════════════════════════════════════════════════════════ */

/* ── Split shell ───────────────────────────────────────────── */
.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 100vh;
}

/* ── Left branding panel ───────────────────────────────────── */
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
  background: linear-gradient(150deg, #8f191c 0%, var(--brand) 45%, #6f1416 100%);
  isolation: isolate;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 560px at 82% 8%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(420px 420px at 8% 92%, rgba(0, 0, 0, 0.24), transparent 62%);
  z-index: -1;
}

/* decorative rings */
.auth-aside .orb {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  z-index: -1;
}
.auth-aside .orb--1 { width: 420px; height: 420px; top: -140px; right: -120px; }
.auth-aside .orb--2 { width: 280px; height: 280px; bottom: -90px; left: -80px; border-color: rgba(255,255,255,0.1); }
.auth-aside .orb--3 {
  width: 90px; height: 90px; top: 32%; right: 16%;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.auth-aside .dot-grid {
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: 26%;
  right: 34px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  z-index: -1;
  opacity: 0.7;
}

.auth-aside__brand .brand { color: #fff; }
.auth-aside__brand .brand__logo {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.auth-aside__brand .brand__name span { color: #ffd9da; }

.auth-aside__mid {
  max-width: 480px;
  margin: 40px 0;
}

.auth-aside__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.auth-aside__title {
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-aside__title em {
  font-style: normal;
  color: #ffd9da;
}

.auth-aside__text {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 430px;
}

.auth-aside__features {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-aside__features li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
}

.auth-aside__features .tick {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.auth-aside__features .tick svg { width: 16px; height: 16px; }

.auth-aside__foot {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ── Right form side ───────────────────────────────────────── */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
  background:
    radial-gradient(700px 380px at 100% 0%, var(--brand-tint), transparent 70%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 38px;
  animation: cardIn 0.5s var(--ease);
}

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

.auth-card__head { margin-bottom: 26px; text-align: center; }

.auth-card__badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: var(--shadow-brand);
  margin-bottom: 16px;
}
.auth-card__badge svg { width: 26px; height: 26px; color: #fff; }

.auth-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.auth-card__subtitle {
  margin-top: 7px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form__actions { margin-top: 6px; }

.auth-form__helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auth-form__helper .checkbox { font-size: 0.84rem; }

.auth-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.auth-links a { font-weight: 500; color: var(--muted); }
.auth-links a:hover { color: var(--brand); }

/* Branch "other" extra input */
.hidden-field { display: none; }
.hidden-field.is-visible { display: block; animation: fadeSlide 0.3s var(--ease); }

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

/* ── Centered single-card pages (forgot / reset / verify) ──── */
.auth-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(800px 420px at 50% -10%, var(--brand-tint), transparent 65%),
    var(--bg);
}

.auth-center .auth-card { max-width: 470px; }

.auth-center__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

/* ── Recovery method tabs (forgot password) ───────────────── */
.recovery-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.recovery-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.recovery-tab svg { width: 16px; height: 16px; flex: none; }
.recovery-tab:hover { color: var(--brand); }
.recovery-tab.is-active {
  background: var(--card);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* ── Phone OTP step ───────────────────────────────────────── */
.otp { text-align: center; }

.otp__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

.otp__hint {
  margin: 6px auto 18px;
  max-width: 320px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.otp .field { text-align: left; }

.otp__input {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  padding-left: 18px;
  padding-right: 12px;
}

.otp__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.otp__switch {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ── Success / state icon ──────────────────────────────────── */
.state-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.state-icon svg { width: 32px; height: 32px; }
.state-icon--success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.state-icon--error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.state-icon--info { background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-tint-2); }

/* ═══════════════════════════════════════════════════════════════
   Dashboard
   ═══════════════════════════════════════════════════════════════ */
.dash {
  min-height: 100vh;
  background: var(--bg-alt);
}

.dash__header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.dash__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

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

.dash__logout {
  width: auto;
  padding: 10px 18px;
  font-size: 0.87rem;
}

.dash__main { padding: 34px 0 60px; }

.dash__hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 38px 40px;
  color: #fff;
  background: linear-gradient(135deg, #8f191c 0%, var(--brand) 55%, #6f1416 100%);
  box-shadow: var(--shadow-md);
  margin-bottom: 26px;
}
.dash__hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -90px;
  top: -120px;
  background: rgba(255, 255, 255, 0.08);
}
.dash__hero h1 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.dash__hero p { margin-top: 8px; color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }

.dash__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.card__subtitle { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }

.profile-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.profile-item { min-width: 0; }
.profile-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.profile-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}
.badge svg { width: 14px; height: 14px; }
.badge--verified { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge--pending { background: var(--warning-bg); color: var(--warning); border: 1px solid #fedf89; }

.dash__aside-stack { display: grid; gap: 22px; }

.verify-banner {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid #fedf89;
  color: #7a3d04;
}
.verify-banner svg { width: 22px; height: 22px; flex: none; color: var(--warning); margin-top: 2px; }
.verify-banner h3 { font-size: 0.95rem; color: #7a3d04; margin-bottom: 4px; }
.verify-banner p { font-size: 0.82rem; line-height: 1.55; margin-bottom: 12px; }
.verify-banner .btn { width: auto; padding: 9px 16px; font-size: 0.82rem; }

.profile-logout {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}
.profile-logout .btn {
  width: auto;
  min-width: 200px;
  padding-left: 34px;
  padding-right: 34px;
}

.dash-skeleton {
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Profile page
   ═══════════════════════════════════════════════════════════════ */
.container--narrow { max-width: 960px; }

.profile-loading { display: grid; gap: 22px; }

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-brand);
}

.profile-head__meta { min-width: 0; }
.profile-head__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.profile-head__subtitle { margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

.profile-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}

.profile-list--single { grid-template-columns: 1fr; }
