/* Admin auth screens — visual language cloned from the reference mockup you shared
   (Admin Login / 2FA screen, "BhoomiScore" prototype, screen 12/16).
   Colors below are READ OFF THE SCREENSHOT BY EYE, not picked from a design file — treat every
   hex value as approximate until you hand over exact tokens (open question #10 in the
   architecture doc). Swap the --brand-name below once the naming question (#9) is answered. */

@import url("tokens.css");

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ---- left panel: deep brand green, restricted-access messaging ---- */
.admin-shell__aside {
  flex: 0 0 420px;
  background: radial-gradient(circle at 15% 10%, var(--navy-800), var(--navy-900) 60%);
  color: #eef1f8;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.admin-shell__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
}

.admin-shell__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4d387, #c1a74a); /* brand gold foil, was a blue gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.admin-shell__brand-name {
  font-weight: 700;
  font-size: 16px;
}

.admin-shell__headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
}

.admin-shell__headline em {
  display: block;
  font-style: normal;
  color: var(--accent-blue);
}

.admin-shell__copy {
  color: #b7c0d8;
  line-height: 1.6;
  margin: 0 0 32px;
}

.admin-shell__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-shell__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #dfe4f0;
}

.admin-shell__feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.admin-shell__footer {
  margin-top: auto;
  color: #7784a0;
  font-size: 12px;
}

/* ---- right panel: the form ---- */
.admin-shell__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.admin-form {
  width: 100%;
  max-width: 440px;
}

.admin-form__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.admin-form__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-form__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.admin-form__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f9ee;
  color: #1a8f52;
}

.admin-form__subtitle {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 14px;
}

.admin-field {
  margin-bottom: 20px;
}

.admin-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-field .req {
  color: var(--danger-red);
}

.admin-field input,
.admin-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.admin-field input:focus,
.admin-field select:focus {
  outline: none;
  border-color: var(--primary-indigo);
  box-shadow: 0 0 0 3px rgba(47, 58, 158, 0.12);
}

.admin-field__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- 6-digit code boxes ---- */
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.otp-boxes input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 0;
}

/* ---- button ---- */
/* Brand primary CTA = deep green (--primary-green), not the gold accent token (--primary-indigo
   is gold now — see tokens.css) — matches frontend's Button.primary (brand-700 background). */
.btn-primary {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  background: var(--primary-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover { background: var(--primary-green-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--primary-indigo);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* ---- warning / notice banner ---- */
.notice-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warning-amber-bg);
  border: 1px solid var(--warning-amber);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: #6b4a06;
}

.error-banner {
  display: none;
  background: #fdeceb;
  border: 1px solid var(--danger-red);
  color: #92201b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.error-banner.is-visible { display: block; }
