:root {
  /* ChakDeBharat Official Brand Palette */
  --cdb-navy-bg: #070b1e;
  --cdb-navy-card: rgba(14, 21, 54, 0.94);
  --cdb-navy-surface: #141e4d;
  --cdb-navy-border: rgba(251, 192, 45, 0.22);
  --cdb-navy-border-hover: rgba(251, 192, 45, 0.45);

  /* Signature Indian Sports Gold & Saffron Accents */
  --cdb-gold: #FBC02D;
  --cdb-gold-hover: #f5b316;
  --cdb-gold-glow: rgba(251, 192, 45, 0.35);
  --cdb-gold-light: #fef08a;
  --cdb-saffron: #ff9933;
  --cdb-blue: #2563eb;
  --cdb-blue-light: #60a5fa;
  --cdb-turf-green: #10b981;

  /* Theme Mappings */
  --bg: var(--cdb-navy-bg);
  --card-bg: var(--cdb-navy-card);
  --surface: var(--cdb-navy-surface);
  --border: rgba(45, 60, 120, 0.65);
  --border-hover: var(--cdb-navy-border-hover);
  --primary: var(--cdb-gold);
  --primary-hover: var(--cdb-gold-hover);
  --primary-text: #080d22;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Status Notifications */
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.14);
  --error-border: rgba(239, 68, 68, 0.35);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.14);
  --success-border: rgba(16, 185, 129, 0.35);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-border: rgba(245, 158, 11, 0.35);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.14);
  --info-border: rgba(56, 189, 248, 0.35);
}

/* Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 10% 15%, rgba(251, 192, 45, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 35%),
    linear-gradient(180deg, #090e24 0%, #050816 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1rem;
  overflow-x: hidden;
}

/* Card Layout Container with ChakDeBharat Accent Ribbon */
.card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 35px rgba(37, 99, 235, 0.12);
  margin: auto;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF9933 0%, #FBC02D 35%, #2563EB 70%, #10B981 100%);
  box-shadow: 0 0 12px rgba(251, 192, 45, 0.4);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(251, 192, 45, 0.2),
    0 0 45px rgba(251, 192, 45, 0.15);
}

/* ChakDeBharat Brand Header Component */
.cdb-brand-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(251, 192, 45, 0.15);
}

.cdb-brand-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cdb-brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cdb-brand-logo-link:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.cdb-logo-img {
  height: 90px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.cdb-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  background: rgba(20, 30, 77, 0.8);
  border: 1px solid rgba(251, 192, 45, 0.4);
  border-radius: 0.75rem;
}

.cdb-fallback-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cdb-fallback-chak {
  color: #ffffff;
}

.cdb-fallback-de {
  color: #ff9933;
  margin: 0 0.15rem;
}

.cdb-fallback-bharat {
  color: var(--cdb-gold);
}

.cdb-brand-tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cdb-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cdb-brand-tagline::before,
.cdb-brand-tagline::after {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(251, 192, 45, 0.35);
}

.cdb-badge-row {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
}

.cdb-sso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(251, 192, 45, 0.12);
  color: var(--cdb-gold-light);
  border: 1px solid rgba(251, 192, 45, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Headings & Subtitles */
h1 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p.subtitle, p.description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 192, 45, 0.12);
  color: var(--cdb-gold);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(251, 192, 45, 0.3);
}

.badge-error {
  background: var(--error-bg);
  color: #f87171;
  border-color: var(--error-border);
}

.client-badge {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  border: 1px solid rgba(59, 130, 246, 0.35);
  word-break: break-word;
}

.dev-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(251, 192, 45, 0.15);
  color: var(--cdb-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(251, 192, 45, 0.3);
}

/* Forms & Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.required {
  color: #f87171;
  margin-left: 0.2rem;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #080d22;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 641px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"] {
    font-size: 0.9rem;
    min-height: 44px;
  }
}

input:focus:not([disabled]) {
  border-color: var(--cdb-gold);
  box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.22);
  background: #0b112d;
}

input[disabled], input[readonly] {
  background: rgba(14, 21, 54, 0.6);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: #263366;
}

/* Buttons */
.btn {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.55rem;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, #FBC02D 0%, #F59E0B 100%);
  color: #070b1e;
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(251, 192, 45, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  box-shadow: 0 6px 20px rgba(251, 192, 45, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(20, 30, 77, 0.7);
  border: 1px solid rgba(251, 192, 45, 0.25);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(28, 42, 107, 0.9);
  border-color: rgba(251, 192, 45, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-social {
  background: #080d22;
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.btn-social:hover {
  background: rgba(20, 30, 77, 0.8);
  border-color: rgba(251, 192, 45, 0.35);
  transform: translateY(-1px);
}

.btn-social.highlight-google {
  border-color: var(--cdb-gold);
  background: rgba(251, 192, 45, 0.08);
  box-shadow: 0 0 16px rgba(251, 192, 45, 0.22);
}

.btn-dev {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
}
.btn-dev:hover {
  background: #0369a1;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn-group .btn {
  flex: 1;
  margin-top: 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--cdb-gold);
  text-decoration: none;
  font-size: 0.8125rem;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  width: auto;
  min-height: auto;
  display: inline;
}
.btn-link:hover {
  text-decoration: underline;
  color: var(--cdb-gold-light);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.divider span {
  padding: 0 0.75rem;
}

/* TOTP & Authenticator Box */
.totp-input {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5em !important;
  text-align: center !important;
  padding: 0.75rem 0.5rem !important;
  color: var(--cdb-gold) !important;
  border-color: rgba(251, 192, 45, 0.4) !important;
}

.secret-box {
  background: #080d22;
  border: 1px dashed rgba(251, 192, 45, 0.5);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin: 1.25rem 0;
  text-align: center;
}

.secret-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cdb-gold);
  letter-spacing: 0.2em;
  word-break: break-all;
  user-select: all;
}

/* Alert Boxes */
.error-alert {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #fca5a5;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.error-code {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.5rem;
  display: block;
}
.error-desc {
  font-size: 0.875rem;
  color: #fecaca;
  line-height: 1.5;
  word-break: break-word;
}

.success-alert {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #6ee7b7;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hint-alert {
  background: rgba(251, 192, 45, 0.1);
  border: 1px solid rgba(251, 192, 45, 0.35);
  color: var(--cdb-gold-light);
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.unactivated-alert {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.unactivated-icon {
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.unactivated-title {
  font-weight: 600;
  color: #fbbf24;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.unactivated-desc {
  font-size: 0.8125rem;
  color: #fde68a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.btn-resend-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #070b1e;
  background: var(--cdb-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-resend-inline:hover {
  background: var(--cdb-gold-hover);
  transform: translateY(-1px);
}

/* Status & Informational Boxes */
.client-box, .info-box, .dev-box {
  background: rgba(14, 21, 54, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  overflow-wrap: break-word;
}
.client-name {
  font-weight: 700;
  color: var(--cdb-gold);
}
.email-highlight {
  font-weight: 600;
  color: var(--cdb-gold);
}
.dev-box {
  border-style: dashed;
  border-color: var(--cdb-gold);
  text-align: left;
}
.dev-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.debug-box {
  background: rgba(8, 13, 34, 0.9);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  word-break: break-all;
  overflow-x: auto;
}

/* Verified Field Wrapper */
.verified-field {
  position: relative;
  display: flex;
  align-items: center;
}
.verified-badge {
  position: absolute;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
  pointer-events: none;
}

/* Status Icon Roundel */
.icon-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.icon-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.icon-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

/* User Info Card in Activation */
.user-card {
  background: rgba(14, 21, 54, 0.7);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25336d;
  flex-shrink: 0;
}
.user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}
.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

/* Scope List in Consent */
.scope-list {
  background: #080d22;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  max-height: 240px;
  overflow-y: auto;
}
.scope-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(45, 60, 120, 0.4);
  font-size: 0.875rem;
}
.scope-item:last-child {
  border-bottom: none;
}
.scope-item input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: var(--cdb-gold);
}
.scope-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Timers & Expiry Badges */
.timer-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 21, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1rem 0;
}
.timer-val {
  color: var(--cdb-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(251, 192, 45, 0.12);
  color: var(--cdb-gold);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(251, 192, 45, 0.3);
}

/* Quick Login Grid */
.quick-logins {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}
.quick-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.btn-quick {
  background: rgba(20, 30, 77, 0.5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn-quick:hover {
  background: rgba(28, 42, 107, 0.8);
  color: #ffffff;
  border-color: rgba(251, 192, 45, 0.4);
}

/* Credential hint card styles */
.creds-hint-card {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(10, 16, 42, 0.85);
  border: 1px solid rgba(251, 192, 45, 0.2);
  border-radius: 0.5rem;
  text-align: left;
}
.creds-hint-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cdb-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.creds-hint-header svg {
  color: var(--cdb-gold);
  flex-shrink: 0;
}

.creds-account {
  background: #070b1e;
  border: 1px solid rgba(45, 60, 120, 0.6);
  border-radius: 0.375rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.6rem;
}
.creds-account:last-child {
  margin-bottom: 0;
}
.creds-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.creds-role-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
}
.creds-role-admin {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.creds-role-user {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.creds-mfa-tag {
  font-size: 0.65rem;
  color: #c084fc;
  font-weight: 600;
}
.creds-tag-none {
  color: var(--text-muted);
}
.creds-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}
.creds-row:last-child {
  margin-bottom: 0;
}
.creds-label {
  color: var(--text-muted);
  width: 68px;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 500;
}
.creds-code {
  background: rgba(20, 30, 77, 0.8);
  color: var(--cdb-gold-light);
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.25rem;
  flex-grow: 1;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid rgba(45, 60, 120, 0.6);
}
.creds-code:hover {
  background: rgba(251, 192, 45, 0.18);
  border-color: rgba(251, 192, 45, 0.4);
  color: #ffffff;
}
.creds-code-mfa {
  color: #e879f9;
}
.btn-copy {
  background: rgba(20, 30, 77, 0.9);
  border: 1px solid rgba(45, 60, 120, 0.8);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  min-height: auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-copy:hover {
  background: rgba(28, 42, 107, 1);
  color: #ffffff;
  border-color: var(--cdb-gold);
}
.btn-copy:active {
  transform: scale(0.95);
}

/* Feature Pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(20, 30, 77, 0.5);
  color: #cbd5e1;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid rgba(45, 60, 120, 0.7);
}
.feature-pill svg {
  color: var(--cdb-gold);
  flex-shrink: 0;
}

/* Quick Fill Status */
.quick-fill-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(251, 192, 45, 0.1);
  border: 1px solid rgba(251, 192, 45, 0.35);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--cdb-gold-light);
  line-height: 1.45;
  text-align: left;
  animation: fadeIn 0.2s ease-in-out;
}
.quick-fill-status code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  color: var(--cdb-gold);
  font-family: monospace;
  font-size: 0.75rem;
}

/* Input Flash Highlight */
.input-filled-flash {
  border-color: var(--cdb-gold) !important;
  box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.35) !important;
  transition: all 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer Links & Help Text */
.footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-link a {
  color: var(--cdb-gold);
  text-decoration: none;
  font-weight: 600;
}
.footer-link a:hover {
  text-decoration: underline;
  color: var(--cdb-gold-light);
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.footer-links {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--cdb-gold);
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.8125rem;
  cursor: pointer;
  color: #cbd5e1;
}
.checkbox-group input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
  accent-color: var(--cdb-gold);
}

/* ChakDeBharat Official Footer Branding Component */
.cdb-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(251, 192, 45, 0.15);
  font-size: 0.75rem;
  color: #94a3b8;
}



.cdb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.72rem;
}

.cdb-footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.cdb-footer-nav a:hover {
  color: var(--cdb-gold);
  text-decoration: underline;
}

.cdb-footer-nav span {
  color: #334155;
}
.cdb-footer-legal {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #64748b;
}

/* Mobile Compatibility & Responsive Breakpoints */
@media (max-width: 640px) {
  body {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
  }

  .cdb-logo-img {
    height: 72px;
    max-width: 260px;
  }

  h1 {
    font-size: 1.35rem;
  }

  p.subtitle, p.description {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .btn {
    min-height: 46px;
    font-size: 0.875rem;
  }

  .verified-field input {
    padding-right: 7.5rem;
  }

  .verified-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

@media (max-width: 380px) {
  body {
    padding: 0.5rem;
    padding-top: 0.75rem;
  }

  .card {
    padding: 1.25rem 0.875rem;
  }

  .cdb-logo-img {
    height: 60px;
    max-width: 220px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:active, .btn-quick:active {
    transform: scale(0.97);
  }
}
