:root {
  --bg-canvas: #040814;
  --bg-card: rgba(11, 18, 36, 0.84);
  --bg-input: rgba(15, 23, 42, 0.9);
  --border-card: rgba(56, 189, 248, 0.22);
  --border-input: rgba(148, 163, 184, 0.22);
  --border-focus: #22d3ee;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --status-ok: #10b981;
  --status-ok-bg: rgba(16, 185, 129, 0.14);
  --status-fail: #ef4444;
  --status-fail-bg: rgba(239, 68, 68, 0.14);
  --status-pending: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.16), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(59, 130, 246, 0.18), transparent 48%),
    linear-gradient(160deg, #030712 0%, #071126 55%, #050b18 100%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
}

.orb--cyan {
  width: 340px;
  height: 340px;
  top: -80px;
  left: -60px;
  background: rgba(6, 182, 212, 0.35);
}

.orb--blue {
  width: 380px;
  height: 380px;
  bottom: -100px;
  right: -70px;
  background: rgba(37, 99, 235, 0.35);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.login-card,
.glass-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 70px rgba(2, 6, 23, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-card {
  max-width: 440px;
  padding: 2.25rem 2rem;
  animation: cardReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.pill-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(6, 182, 212, 0.12);
}

.auth-step {
  animation: fadeSlideIn 0.28s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heading-block {
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, #ffffff 15%, #67e8f9 65%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.45rem;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.highlight-email {
  color: #e0f2fe;
  font-weight: 600;
  word-break: break-word;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.input-field {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
  color: #64748b;
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.input-field--otp {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.45em;
}

.btn-primary {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.88rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #04101d;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #3b82f6 100%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.38);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  appearance: none;
  border: 1px solid var(--border-input);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.btn-full {
  width: 100%;
  padding: 0.82rem 1rem;
  margin-top: 1.25rem;
}

.feedback-msg {
  min-height: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

.feedback-msg--error {
  color: #fca5a5;
}

.feedback-msg--ok {
  color: #6ee7b7;
}

.help-row,
.otp-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.link-btn {
  appearance: none;
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
}

.link-btn:hover:not(:disabled) {
  color: #67e8f9;
  text-decoration: underline;
}

.link-btn:disabled {
  color: #64748b;
  cursor: not-allowed;
}

.dot-sep {
  color: #475569;
}

.help-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.profile-summary {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border-input);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.summary-label {
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-value--ok {
  color: #6ee7b7;
}

/* Admin Dashboard Layout */
.page-shell--wide {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.muted-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.dashboard-section {
  padding: 1.5rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.dashboard-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.status-item {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.status-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-pill--ok {
  background: var(--status-ok-bg);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill--fail {
  background: var(--status-fail-bg);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.38);
}

.status-pill--pending {
  background: var(--status-pending-bg);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.indicator-dot--ok {
  background: var(--status-ok);
}

.indicator-dot--fail {
  background: var(--status-fail);
}

.meta-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-input);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.table-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-input);
}

.log-box {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 0.95rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  overflow-x: auto;
  max-height: 240px;
}

@media (max-width: 640px) {
  .login-card {
    padding: 1.65rem 1.25rem;
    border-radius: 18px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .dashboard-section {
    padding: 1.1rem;
  }
}
