/* ── Auth Pages (login, register, admin login) ───────────────────────────── */

.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-back {
  position: fixed;
  top: 24px; left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
  z-index: 10;
}
.auth-back svg { width: 16px; height: 16px; }
.auth-back:hover { color: var(--text); }

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Logo in auth card ───────────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.auth-logo-img { height: 28px; width: auto; }
.auth-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-logo-text .mk { color: var(--text); }
.auth-logo-text .tv { color: var(--blue); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.auth-header { display: flex; flex-direction: column; gap: 6px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-sub { font-size: 14px; color: var(--text-2); }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

/* ── Step indicator ──────────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.step-dot.active {
  background: var(--blue);
  color: #fff;
}
.step-dot.done {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(48,209,88,0.3);
}
.step-dot.inactive {
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-2);
  margin: 0 6px;
}

/* ── Info note ────────────────────────────────────────────────────────────── */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(46,168,255,0.07);
  border: 1px solid rgba(46,168,255,0.15);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.info-note svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ── Success / done states ───────────────────────────────────────────────── */
.done-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid rgba(48,209,88,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.done-icon svg { width: 28px; height: 28px; color: var(--teal); }

.done-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.done-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.done-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── Form grid ─────────────────────────────────────────────────────────── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── Password toggle ────────────────────────────────────────────────────── */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.password-toggle:hover { color: var(--text-2); }
.password-toggle svg { width: 16px; height: 16px; }

/* ── Divider with text ──────────────────────────────────────────────────── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .auth-title { font-size: 22px; }
}