/* ==========================================================================
   IBN — IMPERIAL BUSINESS NETWORK
   PHASE 1: LOGIN PAGE DESIGN SYSTEM & STYLESHEET
   Brand Colors: Imperial Deep Navy (#060d19, #0a172c), Champagne Gold (#c59b27, #e5b842),
   Crisp White (#ffffff), Professional Slate (#64748b, #94a3b8)
   ========================================================================== */

:root {
  --ibn-navy-deep: #060d19;
  --ibn-navy-dark: #0a172c;
  --ibn-navy-primary: #112240;
  --ibn-navy-surface: #192a48;
  --ibn-gold: #c59b27;
  --ibn-gold-light: #e5b842;
  --ibn-gold-warm: #d4af37;
  --ibn-gold-soft: rgba(197, 155, 39, 0.12);
  --ibn-gold-border: rgba(197, 155, 39, 0.32);
  --ibn-gold-shadow: 0 4px 16px rgba(197, 155, 39, 0.32);
  --ibn-text-main: #0f172a;
  --ibn-text-muted: #64748b;
  --ibn-text-light: #94a3b8;
  --ibn-text-white: #ffffff;
  --ibn-border: #e2e8f0;
  --ibn-border-subtle: #f1f5f9;
  --ibn-bg-page: #f1f5f9;
  --ibn-surface-white: #ffffff;
  --ibn-error: #dc2626;
  --ibn-error-bg: #fef2f2;
  --ibn-error-border: #fecaca;
  --ibn-success: #059669;
  --ibn-success-bg: #ecfdf5;
  --ibn-success-border: #a7f3d0;
  --ibn-info: #0284c7;
  --ibn-info-bg: #f0f9ff;
  --ibn-info-border: #bae6fd;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 25px 60px -12px rgba(10, 23, 44, 0.18), 0 0 1px 1px rgba(10, 23, 44, 0.05);
  --shadow-input-focus: 0 0 0 3px rgba(197, 155, 39, 0.22);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background: var(--ibn-bg-page);
  color: var(--ibn-text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.login-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* ==========================================================================
   DESKTOP 50/50 SPLIT FOR LOGIN VIEW (min-width: 961px)
   ========================================================================== */
@media (min-width: 961px) {
  body.login-active {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: var(--ibn-navy-deep) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  body.login-active #governance-portal-switcher {
    display: none !important;
  }

  body.login-active #app-login-section {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
  }

  body.login-active .ibn-auth-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    overflow: hidden !important;
  }

  body.login-active .ibn-brand-panel {
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 36px 48px 28px 48px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  body.login-active .brand-panel-content {
    height: 100% !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  body.login-active .brand-hero-section {
    gap: 8px !important;
    margin-top: 0 !important;
  }

  body.login-active .brand-headline {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  body.login-active .brand-description {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body.login-active .brand-features-row {
    padding: 6px 0 !important;
  }

  body.login-active .brand-stats-row {
    padding: 10px 8px !important;
  }

  body.login-active .ibn-login-panel {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding: 24px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--ibn-surface-white) !important;
  }

  body.login-active .login-card-inner {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    gap: 12px !important;
  }

  body.login-active .login-header {
    gap: 4px !important;
  }

  body.login-active .login-title {
    font-size: 24px !important;
  }

  body.login-active .login-subtitle {
    font-size: 13px !important;
  }

  body.login-active .auth-form {
    gap: 10px !important;
  }

  body.login-active .form-group {
    margin-bottom: 0 !important;
  }

  body.login-active .form-input {
    padding: 9px 13px !important;
    font-size: 13.5px !important;
  }

  body.login-active .btn-primary-auth {
    padding: 10px 18px !important;
    font-size: 14px !important;
  }

  body.login-active .demo-credentials-bar {
    margin-top: 10px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }

  body.login-active .demo-chips-group {
    gap: 6px !important;
  }

  body.login-active .demo-chip {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
  }
}

/* ==========================================================================
   MAIN CONTAINER & TWO-PANEL SPLIT
   ========================================================================== */

.ibn-auth-wrapper {
  width: 100%;
  max-width: 1140px;
  min-height: 670px;
  background: var(--ibn-surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   LEFT PANEL — BRAND & GLOBAL NETWORK PRESENTATION
   ========================================================================== */

.ibn-brand-panel {
  position: relative;
  background: var(--ibn-navy-deep);
  color: var(--ibn-text-white);
  padding: 44px 44px 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Background Globe Graphic with Lighting Overlays */
.brand-visual-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/ibn_globe_network.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.85;
  z-index: 1;
}

.brand-visual-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 13, 25, 0.94) 0%,
    rgba(10, 23, 44, 0.82) 45%,
    rgba(7, 14, 28, 0.65) 100%
  );
  z-index: 2;
}

.brand-panel-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 32px;
}

/* Brand Identity / Logo Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.brand-emblem-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crown-icon {
  width: 44px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(229, 184, 66, 0.4));
}

.brand-crown-icon svg {
  width: 100%;
  height: 100%;
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-acronym {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.brand-acronym .white-letter {
  color: #ffffff;
}

.brand-acronym .gold-letter {
  background: linear-gradient(135deg, #fcd34d 0%, #c59b27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-top: 3px;
}

/* Headline & Supporting Message */
.brand-hero-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.brand-headline {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.headline-white {
  display: block;
  color: #ffffff;
}

.headline-gold {
  display: block;
  background: linear-gradient(135deg, #fef08a 0%, #e5b842 50%, #c59b27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 480px;
}

/* Three Feature Circles */
.brand-features-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.feature-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ibn-gold-border);
  background: rgba(17, 34, 64, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ibn-gold-light);
  font-size: 18px;
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-item:hover .feature-circle {
  border-color: var(--ibn-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.3);
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.feature-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  max-width: 120px;
}

.feature-divider {
  width: 1px;
  height: 38px;
  background: rgba(229, 184, 66, 0.2);
  align-self: center;
  margin-bottom: 18px;
}

/* Statistics Bar */
.brand-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 184, 66, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--ibn-gold-light);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RIGHT PANEL — LOGIN CARD & FORMS
   ========================================================================== */

.ibn-login-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ibn-surface-white);
  position: relative;
  overflow-y: auto;
}

.login-card-inner {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Header */
.login-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ibn-navy-dark);
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 14.5px;
  color: var(--ibn-text-muted);
}

/* Identifier Tabs (Email/Phone vs Member ID) */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  gap: 12px;
  margin-top: 4px;
}

.auth-tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ibn-text-muted);
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-tab-btn:hover {
  color: var(--ibn-navy-dark);
}

.auth-tab-btn.active {
  color: var(--ibn-navy-dark);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ibn-gold);
  border-radius: 3px 3px 0 0;
}

/* Alert Notification Banner */
.alert-box {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.45;
  align-items: flex-start;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}

.alert-box.show {
  display: flex;
}

.alert-error {
  background: var(--ibn-error-bg);
  border: 1px solid var(--ibn-error-border);
  color: var(--ibn-error);
}

.alert-success {
  background: var(--ibn-success-bg);
  border: 1px solid var(--ibn-success-border);
  color: var(--ibn-success);
}

.alert-info {
  background: var(--ibn-info-bg);
  border: 1px solid var(--ibn-info-border);
  color: var(--ibn-info);
}

.alert-icon {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
}

.alert-close:hover {
  opacity: 1;
}

/* Form Groups & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ibn-navy-dark);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--ibn-text-light);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 42px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ibn-text-main);
  background: var(--ibn-surface-white);
  border: 1.5px solid var(--ibn-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--ibn-gold);
  box-shadow: var(--shadow-input-focus);
}

.form-input:focus + .input-icon,
.input-container:focus-within .input-icon {
  color: var(--ibn-gold);
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--ibn-text-light);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn:hover {
  color: var(--ibn-navy-dark);
}

/* Form Utilities (Remember me & Forgot password) */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin-top: -2px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ibn-text-muted);
  user-select: none;
}

.remember-checkbox {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--ibn-border);
  border-radius: 4px;
  background: var(--ibn-surface-white);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.remember-checkbox:checked {
  background: var(--ibn-gold);
  border-color: var(--ibn-gold);
}

.remember-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.forgot-password-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
}

.forgot-password-link:hover {
  color: var(--ibn-gold);
  text-decoration: underline;
}

/* Primary Sign In Button */
.btn-primary-auth {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #d4af37 0%, #c59b27 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--ibn-gold-shadow);
  transition: var(--transition);
  margin-top: 4px;
}

.btn-primary-auth:hover:not(:disabled) {
  background: linear-gradient(135deg, #e5b842 0%, #d4af37 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 155, 39, 0.4);
}

.btn-primary-auth:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Join IBN Route Link */
.join-prompt {
  text-align: center;
  font-size: 14px;
  color: var(--ibn-text-muted);
}

.join-link {
  color: var(--ibn-gold);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}

.join-link:hover {
  color: var(--ibn-gold-light);
  text-decoration: underline;
}

/* Social Login Divider & Buttons */
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ibn-text-light);
  font-size: 12.5px;
  font-weight: 500;
  margin: 4px 0;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--ibn-border);
}

.social-divider span {
  padding: 0 12px;
}

.social-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-btn {
  height: 44px;
  background: var(--ibn-surface-white);
  border: 1.5px solid var(--ibn-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--ibn-navy-dark);
}

.social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   SUB-VIEWS (FORGOT PASSWORD, JOIN IBN, DASHBOARD PLACEHOLDER)
   ========================================================================== */

.auth-subview {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.25s ease;
}

.auth-subview.active {
  display: flex;
}

.back-to-signin-btn {
  background: none;
  border: none;
  color: var(--ibn-text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
  padding: 4px 0;
}

.back-to-signin-btn:hover {
  color: var(--ibn-navy-dark);
}

.subview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ibn-gold-soft);
  color: var(--ibn-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Dashboard Redirect View (Phase 2 Preview) */
.dashboard-preview-card {
  background: #f8fafc;
  border: 1.5px solid var(--ibn-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ibn-navy-dark) 0%, var(--ibn-navy-primary) 100%);
  border: 2px solid var(--ibn-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ibn-navy-dark);
}

.user-display-role {
  font-size: 12.5px;
  color: var(--ibn-text-muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  margin-top: 4px;
  align-self: flex-start;
}

.phase-note-box {
  background: #ffffff;
  border-left: 3px solid var(--ibn-gold);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ibn-text-muted);
  line-height: 1.5;
}

.btn-signout {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid #ef4444;
  color: #ef4444;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-signout:hover {
  background: #fef2f2;
}

/* ==========================================================================
   DEVELOPER / DEMO CREDENTIALS DRAWER
   ========================================================================== */

.demo-credentials-bar {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed var(--ibn-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.demo-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ibn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-chip {
  background: #ffffff;
  border: 1px solid var(--ibn-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: var(--ibn-navy-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-chip:hover {
  border-color: var(--ibn-gold);
  color: var(--ibn-gold);
  background: #fefce8;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .ibn-auth-wrapper {
    grid-template-columns: 1fr;
    max-width: 580px;
    min-height: auto;
  }

  .ibn-brand-panel {
    padding: 32px 28px;
    gap: 24px;
  }

  .brand-panel-content {
    gap: 20px;
  }

  .brand-headline {
    font-size: 26px;
  }

  .brand-description {
    display: none;
  }

  .brand-features-row {
    padding: 10px 0;
  }

  .feature-circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
    margin-bottom: 6px;
  }

  .feature-title {
    font-size: 12px;
  }

  .feature-desc {
    display: none;
  }

  .feature-divider {
    height: 28px;
    margin-bottom: 8px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .ibn-login-panel {
    padding: 36px 28px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .ibn-auth-wrapper {
    border-radius: var(--radius-md);
  }

  .ibn-brand-panel {
    padding: 24px 20px;
  }

  .brand-headline {
    font-size: 22px;
  }

  .brand-features-row {
    display: none;
  }

  .ibn-login-panel {
    padding: 28px 20px;
  }

  .social-buttons-row {
    gap: 8px;
  }
}
