/* Rainbow Shield — Admin login */
:root {
  --aa-bg: #0b0f1a;
  --aa-surface: rgba(255, 255, 255, 0.06);
  --aa-surface-strong: rgba(255, 255, 255, 0.1);
  --aa-border: rgba(255, 255, 255, 0.12);
  --aa-text: rgba(255, 255, 255, 0.94);
  --aa-muted: rgba(255, 255, 255, 0.62);
  --aa-gold: #d4af37;
  --aa-gold-soft: rgba(212, 175, 55, 0.16);
  --aa-gold-glow: rgba(212, 175, 55, 0.35);
  --aa-emerald: #10b981;
  --aa-radius: 16px;
  --aa-radius-sm: 12px;
  --aa-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --aa-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--aa-font);
  color: var(--aa-text);
  background: var(--aa-bg);
  -webkit-font-smoothing: antialiased;
}

.admin-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-auth__shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
  min-height: 100vh;
}

/* ── Hero panel ───────────────────────────────────────────── */
.admin-auth__hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 48px);
}

.admin-auth__hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/Banjara Road No 2.jpg') center / cover no-repeat;
}

.admin-auth__hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 15, 26, 0.08) 0%,
    rgba(11, 15, 26, 0.02) 42%,
    rgba(11, 15, 26, 0.18) 100%
  );
  pointer-events: none;
}

.admin-auth__hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 18% 88%, rgba(11, 15, 26, 0.45), transparent 72%),
    radial-gradient(600px 320px at 12% 18%, rgba(212, 175, 55, 0.12), transparent 68%),
    radial-gradient(480px 260px at 88% 30%, rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
}

.admin-auth__hero-grid {
  position: absolute;
  inset: auto 0 0 0;
  height: min(58vh, 520px);
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 100%);
  pointer-events: none;
}

.admin-auth__hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(8, 12, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.admin-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 20px;
}

.admin-auth__eyebrow .ti {
  color: var(--aa-gold);
  font-size: 14px;
}

.admin-auth__hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.admin-auth__hero-text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.admin-auth__highlights {
  position: relative;
  max-width: 560px;
}

.admin-auth__highlights-viewport {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.admin-auth__highlights-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

.admin-auth__highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--aa-radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  min-height: 86px;
}

.admin-auth__highlights-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-left: 4px;
}

.admin-auth__highlights-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.25s ease, background 0.25s ease;
}

.admin-auth__highlights-dot.is-active {
  width: 22px;
  background: var(--aa-gold);
}

.admin-auth__highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--aa-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--aa-gold);
  font-size: 18px;
}

.admin-auth__highlight h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.admin-auth__highlight p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Login panel ──────────────────────────────────────────── */
.admin-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
    linear-gradient(180deg, #121826 0%, #0b0f1a 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-auth__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--aa-shadow);
  backdrop-filter: blur(20px);
}

.admin-auth__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.admin-auth__logo {
  max-width: 220px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.admin-auth__header {
  text-align: center;
  margin-bottom: 28px;
}

.admin-auth__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-auth__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--aa-muted);
  line-height: 1.5;
}

.admin-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-auth__badge .ti {
  font-size: 13px;
  color: var(--aa-emerald);
}

/* ── Form ─────────────────────────────────────────────────── */
.admin-auth__form-group {
  margin-bottom: 18px;
}

.admin-auth__form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.admin-auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-auth__input-wrap > .ti:first-child {
  position: absolute;
  left: 14px;
  font-size: 17px;
  color: var(--aa-gold);
  pointer-events: none;
  z-index: 1;
}

.admin-auth__input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  border-radius: var(--aa-radius-sm);
  border: 1px solid var(--aa-border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--aa-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-auth__input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.admin-auth__input-wrap input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.admin-auth__toggle-pw {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-auth__toggle-pw:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.admin-auth__error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--aa-radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.admin-auth__error.show {
  display: flex;
}

.admin-auth__error .ti {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 16px;
}

.admin-auth__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--aa-radius-sm);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1a1408;
  background: linear-gradient(135deg, #e8c96a 0%, var(--aa-gold) 48%, #b8922e 100%);
  box-shadow: 0 8px 24px var(--aa-gold-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.admin-auth__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.42);
}

.admin-auth__submit:active:not(:disabled) {
  transform: translateY(0);
}

.admin-auth__submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.admin-auth__submit .ti {
  font-size: 17px;
}

/* ── Footer ───────────────────────────────────────────────── */
.admin-auth__footer {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-auth__footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.admin-auth__footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.admin-auth__footer-links a:hover {
  color: var(--aa-gold);
}

.admin-auth__footer-copy {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 280px;
  max-width: 380px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: aaToastIn 0.28s ease-out;
  border-left: 3px solid #ef4444;
}

.toast.success { border-left-color: #22c55e; }
.toast.info { border-left-color: var(--aa-gold); }
.toast.warning { border-left-color: #f59e0b; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.toast-message { font-size: 12px; color: rgba(255, 255, 255, 0.65); }

@keyframes aaToastIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-auth__shell {
    grid-template-columns: 1fr;
  }

  .admin-auth__hero {
    min-height: 280px;
    align-items: flex-end;
  }

  .admin-auth__highlights {
    display: none;
  }

  .admin-auth__panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 480px) {
  .admin-auth__card {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .admin-auth__title {
    font-size: 22px;
  }

  .admin-auth__hero-title {
    font-size: 24px;
  }
}
