:root {
  --maroon: #800000;
  --maroon-dark: #600000;
  --maroon-light: #a00000;
  --maroon-soft: rgba(128, 0, 0, 0.05);
  --maroon-glass: rgba(128, 0, 0, 0.8);
}

/* ===== 3D AUTH REDESIGN (MAROON SCHEDIT STYLE) ===== */
.auth-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.auth-back-btn:hover {
  background: #fff;
  color: var(--maroon);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.auth-card-3d {
  width: 100%;
  max-width: 360px;
  perspective: 1200px;
  position: relative;
  z-index: 2;
  margin: 10px;
}

.auth-card-3d.wider {
  max-width: 420px;
}

.auth-card-inner {
  background: #ffffff;
  border-radius: 32px;
  padding: 32px 28px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 0 0 1px #eef2ef;
  transform: rotateX(1deg) rotateY(-0.5deg);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-card-inner:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Header Styles */
.auth-header {
  text-align: left;
  margin-bottom: 24px;
}

.auth-title-3d {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.auth-subtitle-3d {
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
}

/* Form Styles */
.form-group-3d {
  margin-bottom: 16px;
}

.label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.form-label-3d {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.label-link {
  font-size: 12px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.input-wrapper-3d {
  position: relative;
}

.form-input-3d {
  width: 100%;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #18181b;
  transition: all 0.2s ease;
}

.form-input-3d:focus {
  outline: none;
  background: #fff;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--maroon-soft);
}

.auth-actions-3d {
  display: flex;
  align-items: center;
  margin-top: -4px;
  margin-bottom: 20px;
}

.remember-3d {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #52525b;
  font-size: 13px;
  font-weight: 500;
}

.remember-3d input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--maroon);
}

/* Button Styles */
.auth-submit-btn-3d {
  width: 100%;
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(128, 0, 0, 0.15);
  margin-bottom: 20px;
}

.auth-submit-btn-3d:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(128, 0, 0, 0.25);
}

/* Divider */
.auth-divider-3d {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 500;
}

.auth-divider-3d::before, .auth-divider-3d::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e4e7;
}

/* Social Buttons */
.social-list-3d {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn-3d:hover {
  background: #fbfbfb;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.social-icon-img {
  width: 18px;
  height: 18px;
}

/* Footer */
.auth-footer-3d {
  text-align: center;
  font-size: 13px;
  color: #52525b;
}

.auth-link-3d {
  background: none;
  border: none;
  color: var(--maroon);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

.auth-link-3d:hover {
  text-decoration: underline;
}

/* Background */
#page-login .auth-wrap, #page-register .auth-wrap {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Dashboard Tweaks */
.admin-layout, .portal-layout {
  background: #f8fafc;
  min-height: 100vh;
}

/* Mobile Specific Tweaks */
@media (max-width: 480px) {
  .auth-card-inner {
    border-radius: 0;
    min-height: 100vh;
    padding: 80px 24px 40px;
    transform: none !important;
  }
  
  #page-login .auth-wrap, #page-register .auth-wrap {
    padding: 0;
    background: #fff;
  }
  
  .auth-card-3d {
    margin: 0;
    max-width: none;
  }
  
  .auth-back-btn {
    top: 16px;
    left: 16px;
    background: #f4f4f5;
    color: #1a1a1a;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
}

/* ===== CONTROL CENTER DASHBOARD SYSTEM ===== */
.admin-layout-3d {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  width: 100%;
  background: #f8fafc;
}

.admin-sidebar-3d {
  background: #1e293b;
  color: #fff;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header-3d {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  padding: 0 8px;
}

.sidebar-logo-3d {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.sidebar-title-3d h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.sidebar-title-3d span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-nav-3d {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-section-3d {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding: 0 12px;
}

.nav-btn-3d {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.nav-btn-3d:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.nav-btn-3d.active {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.nav-btn-3d.logout {
  margin-top: auto;
  color: #fca5a5;
}

.nav-btn-3d.logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.admin-main-3d {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.admin-top-bar-3d {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
}

.breadcrumb-3d {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.admin-profile-3d {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-status-3d {
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.admin-avatar-3d {
  width: 40px;
  height: 40px;
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
}

/* View Content */
.admin-view-3d {
  padding: 40px;
  max-width: 1200px;
  display: none;
}

.admin-view-3d.active {
  display: block;
}

.view-header-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.view-title-3d {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.btn-report-3d {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-3d:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

/* Metric Grid */
.metric-grid-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card-3d {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.metric-head-3d {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.metric-icon-bg {
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
}

.metric-trend-3d {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.metric-label-3d {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-value-3d {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

/* Dashboard Grid */
.dashboard-grid-3d {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.data-panel-3d {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 24px;
}

.panel-header-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.panel-header-3d h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.panel-link-3d {
  background: none;
  border: none;
  color: var(--maroon);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.admin-table-3d {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-3d th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table-3d td {
  padding: 16px;
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.badge-3d {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-3d.green { background: #f0fdf4; color: #166534; }
.badge-3d.amber { background: #fffbeb; color: #92400e; }
.badge-3d.blue { background: #eff6ff; color: #1e40af; }

/* Activity Feed */
.activity-list-3d {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-item-3d {
  display: flex;
  gap: 16px;
}

.activity-line-3d {
  width: 4px;
  height: 40px;
  background: #10b981;
  border-radius: 4px;
  flex-shrink: 0;
}

.activity-content-3d {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #334155;
}

.activity-content-3d span {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Mobile Dashboard */
@media (max-width: 1024px) {
  .admin-layout-3d {
    grid-template-columns: 1fr;
  }
  .admin-sidebar-3d {
    display: none;
  }
  .metric-grid-3d {
    grid-template-columns: 1fr;
  }
  .dashboard-grid-3d {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG + LOGIN POLISH ===== */
.auth-kicker-3d {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.auth-demo-box {
  display: grid;
  gap: 3px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  margin: -4px 0 20px;
}

.auth-demo-box span {
  color: #9a3412;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.login-role-card {
  min-height: 74px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  color: #334155;
  transition: all 0.2s ease;
}

.login-role-card strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  margin-bottom: 3px;
}

.login-role-card span {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.login-role-card:hover,
.login-role-card.active {
  background: #fff;
  border-color: var(--maroon);
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.1);
  transform: translateY(-1px);
}

.login-role-card.active strong {
  color: var(--maroon);
}

.blog-hero {
  background: linear-gradient(135deg, rgba(58,0,0,0.92), rgba(128,0,0,0.82)), url("../img/school-supplies.JPG") center/cover no-repeat;
  padding: 112px 0 72px;
  color: #fff;
}

.blog-hero h1 {
  font-size: 48px;
  margin: 8px 0 12px;
}

.blog-hero p {
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  font-size: 17px;
}

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.blog-toolbar h2 {
  font-size: 30px;
  margin-bottom: 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--green-light);
}

.blog-card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.blog-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.blog-empty {
  border: 1px dashed var(--border-mid);
  border-radius: 8px;
  padding: 28px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-soft);
}

.blog-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.blog-admin-form textarea.form-input-3d {
  resize: vertical;
  min-height: 92px;
}

.blog-publish-row {
  margin: 8px 0 18px;
}

.blog-admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-admin-actions .auth-submit-btn-3d {
  margin: 0;
}

.admin-blog-list {
  display: grid;
  gap: 12px;
}

.admin-blog-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.admin-blog-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0f172a;
}

.admin-blog-item p {
  color: #64748b;
  font-size: 13px;
}

.admin-blog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .blog-grid,
  .blog-admin-grid {
    grid-template-columns: 1fr;
  }

  .blog-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .blog-hero h1 {
    font-size: 36px;
  }
}

/* ═══════ LOGIN: FANDS-INSPIRED — KCH COLORS ═══════ */
:root {
  --kch-maroon: #800000;
  --kch-maroon-deep: #600000;
  --kch-maroon-light: #a00000;
  --kch-gold: #c8973a;
  --kch-gold-light: #fdf4e7;
  --kch-cream: #faf7f2;
  --kch-sand: #f0ebe3;
  --kch-text: #2c2c2c;
  --kch-text-light: #6b6b6b;
  --kch-white: #ffffff;
  --kch-red-soft: #e85d5d;
  --kch-font-display: 'Playfair Display', serif;
  --kch-font-body: 'DM Sans', sans-serif;
  --kch-radius-sm: 8px;
  --kch-radius-md: 16px;
  --kch-radius-lg: 24px;
  --kch-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT: BRAND PANEL */
.auth-brand-panel {
  background: var(--kch-maroon-deep);
  position: relative;
  overflow: hidden;
  padding: 60px 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--kch-white);
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 80%, rgba(200,151,58,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.brand-top,
.brand-middle,
.brand-bottom {
  position: relative;
  z-index: 1;
}

.brand-logo {
  font-family: var(--kch-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--kch-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.brand-logo span {
  color: var(--kch-gold);
}

.brand-logo:hover {
  color: var(--kch-white);
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,151,58,0.2);
  color: var(--kch-gold-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--kch-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.brand-tag i {
  font-size: 0.6rem;
}

.brand-headline {
  font-family: var(--kch-font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.brand-headline .accent {
  color: var(--kch-gold);
  font-style: italic;
}

.brand-sub {
  font-family: var(--kch-font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 440px;
}

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  max-width: 440px;
}

.brand-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--kch-radius-md);
  padding: 16px;
}

.brand-stat-num {
  font-family: var(--kch-font-body);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--kch-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.brand-stat-label {
  font-family: var(--kch-font-body);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-bottom {
  font-family: var(--kch-font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.brand-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--kch-transition);
}

.brand-bottom a:hover {
  color: var(--kch-gold);
}

/* RIGHT: FORM PANEL */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--kch-cream);
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--kch-text-light);
  font-family: var(--kch-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 32px;
  transition: var(--kch-transition);
  cursor: pointer;
  background: none;
  border: none;
}

.auth-back:hover {
  color: var(--kch-maroon);
}

.auth-title {
  font-family: var(--kch-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--kch-maroon-deep);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-family: var(--kch-font-body);
  color: var(--kch-text-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Alert */
.alert-error {
  background: rgba(200,50,50,0.06);
  border-left: 3px solid var(--kch-red-soft);
  color: #7a1f1f;
  padding: 12px 16px;
  border-radius: var(--kch-radius-sm);
  font-family: var(--kch-font-body);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form fields */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--kch-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kch-maroon);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kch-gold);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.8;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 2px solid var(--kch-sand);
  border-radius: var(--kch-radius-sm);
  background: var(--kch-white);
  font-family: var(--kch-font-body);
  font-size: 0.95rem;
  color: var(--kch-text);
  transition: var(--kch-transition);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--kch-maroon);
  box-shadow: 0 0 0 4px rgba(128,0,0,0.06);
}

.form-input::placeholder {
  color: #b5b5b5;
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--kch-text-light);
  cursor: pointer;
  padding: 4px;
  transition: var(--kch-transition);
  font-size: 1rem;
}

.password-toggle:hover {
  color: var(--kch-maroon);
}

/* Row: remember + forgot */
.form-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--kch-font-body);
  font-size: 0.88rem;
  color: var(--kch-text-light);
}

.remember-check input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--kch-maroon);
  cursor: pointer;
}

.forgot-link {
  font-family: var(--kch-font-body);
  font-size: 0.88rem;
  color: var(--kch-maroon);
  font-weight: 600;
  text-decoration: none;
  transition: var(--kch-transition);
  cursor: pointer;
  background: none;
  border: none;
}

.forgot-link:hover {
  color: var(--kch-maroon-light);
  text-decoration: underline;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--kch-maroon);
  color: var(--kch-white);
  border: none;
  border-radius: 100px;
  font-family: var(--kch-font-body);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--kch-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(128,0,0,0.2);
}

.btn-submit:hover {
  background: var(--kch-maroon-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(128,0,0,0.3);
}

.btn-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--kch-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--kch-text-light);
  font-family: var(--kch-font-body);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--kch-sand);
}

/* Social buttons */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid var(--kch-sand);
  border-radius: var(--kch-radius-sm);
  background: var(--kch-white);
  color: var(--kch-text);
  font-family: var(--kch-font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--kch-transition);
  cursor: pointer;
}

.social-btn:hover {
  border-color: var(--kch-gold);
  color: var(--kch-maroon-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.social-btn i {
  font-size: 1.1rem;
}

/* Sign-up prompt */
.auth-prompt {
  font-family: var(--kch-font-body);
  text-align: center;
  font-size: 0.92rem;
  color: var(--kch-text-light);
}

.auth-prompt a {
  color: var(--kch-maroon);
  font-weight: 700;
  text-decoration: none;
  transition: var(--kch-transition);
  cursor: pointer;
}

.auth-prompt a:hover {
  color: var(--kch-maroon-light);
  text-decoration: underline;
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 151, 58, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 151, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 151, 58, 0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Apply animations */
.auth-layout {
  animation: fadeIn 0.6s ease;
}

.auth-brand-panel .brand-logo {
  animation: fadeInLeft 0.7s ease 0.1s both;
}

.auth-brand-panel .brand-tag {
  animation: fadeInLeft 0.7s ease 0.2s both;
}

.auth-brand-panel .brand-headline {
  animation: fadeInLeft 0.7s ease 0.3s both;
}

.auth-brand-panel .brand-sub {
  animation: fadeInLeft 0.7s ease 0.4s both;
}

.auth-brand-panel .brand-stats {
  animation: fadeInLeft 0.7s ease 0.5s both;
}

.auth-brand-panel .brand-bottom {
  animation: fadeInLeft 0.7s ease 0.6s both;
}

.auth-form-wrapper {
  animation: fadeInRight 0.7s ease 0.2s both;
}

.auth-back {
  animation: fadeInRight 0.6s ease 0.3s both;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-back:hover {
  transform: translateX(-4px);
  color: var(--kch-maroon);
}

.auth-back svg {
  transition: all 0.3s ease;
}

.auth-back:hover svg {
  transform: translateX(-3px);
}

.auth-title {
  animation: fadeInRight 0.6s ease 0.35s both;
}

.auth-subtitle {
  animation: fadeInRight 0.6s ease 0.4s both;
}

.login-role-tabs {
  animation: fadeInRight 0.6s ease 0.45s both;
}

.login-role-tab {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.login-role-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(128,0,0,0.05) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-role-tab:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease infinite;
}

.login-role-tab.active {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group {
  animation: fadeInRight 0.6s ease calc(var(--i, 0) * 0.08s + 0.5s) both;
}

.form-group:nth-child(1) { --i: 1; }
.form-group:nth-child(2) { --i: 2; }

.form-input {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(128,0,0,0.08);
}

.input-icon {
  transition: all 0.3s ease;
}

.form-input:focus ~ .input-icon {
  animation: pulse-ring 1s ease;
}

.password-toggle {
  transition: all 0.25s ease;
}

.password-toggle:hover {
  transform: scale(1.15);
}

.password-toggle:active {
  transform: scale(0.95);
}

.form-meta-row {
  animation: fadeInRight 0.6s ease 0.65s both;
}

.remember-check {
  transition: all 0.2s ease;
}

.remember-check:hover {
  color: var(--kch-maroon);
}

.remember-check input[type="checkbox"] {
  transition: all 0.2s ease;
}

.remember-check input[type="checkbox"]:checked {
  animation: pulse-ring 0.5s ease;
}

.forgot-link {
  position: relative;
  transition: all 0.3s ease;
}

.forgot-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--kch-gold);
  transition: width 0.3s ease;
}

.forgot-link:hover::after {
  width: 100%;
}

.btn-submit {
  animation: fadeInRight 0.6s ease 0.7s both;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(128,0,0,0.35);
}

.btn-submit:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-submit .spinner {
  animation: spin 0.6s linear infinite;
}

.divider {
  animation: fadeInRight 0.6s ease 0.75s both;
}

.social-row {
  animation: fadeInRight 0.6s ease 0.8s both;
}

.social-btn {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--kch-gold);
}

.social-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.auth-prompt {
  animation: fadeInRight 0.6s ease 0.85s both;
}

/* Brand logo shimmer */
.brand-logo {
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-logo:hover span {
  background: linear-gradient(90deg, var(--kch-gold) 0%, #fdf4e7 50%, var(--kch-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
}

/* Brand stat hover */
.brand-stat {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.brand-stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(200,151,58,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.brand-stat-num {
  transition: all 0.3s ease;
  display: inline-block;
}

.brand-stat:hover .brand-stat-num {
  animation: float 2s ease-in-out infinite;
}

/* Page load animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-layout {
  animation: fadeIn 0.5s ease;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
@media (max-width: 991px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    padding: 40px 32px 32px;
    min-height: auto;
  }

  .brand-stats {
    display: none;
  }

  .brand-headline {
    font-size: 1.6rem;
  }

  .brand-sub {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .brand-bottom {
    display: none;
  }
}

@media (max-width: 575px) {
  .auth-form-panel {
    padding: 40px 24px;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .social-row {
    grid-template-columns: 1fr;
  }
}

/* ===== LOGIN SPLIT LAYOUT (OLD — KEEP FOR REGISTER) ===== */
.login-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #fff;
}
.login-brand-panel {
  background: #800000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}
.login-form-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form-wrapper {
  width: 100%;
  max-width: 420px;
}
.login-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 6px;
}
.login-form-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 28px;
}
.login-role-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 24px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}
.login-role-tab {
  padding: 9px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #777;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.login-role-tab:hover {
  color: #333;
  background: rgba(128,0,0,0.04);
}
.login-role-tab.active {
  background: #fff;
  color: #800000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.login-field {
  margin-bottom: 18px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  background: #fafafa;
  color: #1a1a1a;
  box-sizing: border-box;
}
.login-field input:focus {
  outline: none;
  border-color: #800000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(128,0,0,0.06);
}
.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}
.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  accent-color: #800000;
  cursor: pointer;
}
.login-forgot {
  background: none;
  border: none;
  color: #800000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.login-forgot:hover {
  text-decoration: underline;
}
.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 20px rgba(128,0,0,0.2);
}
.login-submit-btn:hover {
  background: #600000;
  box-shadow: 0 10px 28px rgba(128,0,0,0.3);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: #aaa;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}
.login-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.login-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.login-social-btn:hover {
  border-color: #ccc;
  background: #fafafa;
}
.login-social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.login-signup-link {
  text-align: center;
  font-size: 14px;
  color: #555;
}
.login-link-btn {
  background: none;
  border: none;
  color: #800000;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #1a1a1a;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}
.login-back-btn:hover {
  background: #fff;
  transform: translateX(-3px);
}
.login-brand-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.login-brand-logo {
  margin-bottom: 28px;
}
.login-logo-box {
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.login-brand-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px;
  font-weight: 500;
}
.login-brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 40px;
}
.login-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.login-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.login-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.login-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-brand-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Left Brand Panel */
.login-brand-panel {
  background: #800000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.login-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 9px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  font-family: 'DM Sans', sans-serif;
}
.login-back-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(-3px);
}
.login-brand-content {
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.login-brand-logo {
  margin-bottom: 28px;
}
.login-logo-box {
  width: 68px;
  height: 68px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.login-brand-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 16px;
  font-weight: 500;
}
.login-brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 420px;
}
.login-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.login-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.login-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  font-family: 'DM Sans', sans-serif;
}
.login-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
  .login-brand-footer {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    z-index: 2;
    text-align: center;
  }
}

/* ===== LOGIN: FANDS-INSPIRED SPLIT LAYOUT ===== */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand-panel {
  background: #600000;
  position: relative;
  overflow: hidden;
  padding: 60px 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 80%, rgba(200,151,58,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.brand-top,
.brand-middle,
.brand-bottom {
  position: relative;
  z-index: 1;
}

.brand-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.brand-logo span {
  color: #c8973a;
}

.brand-logo:hover {
  color: #fff;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,151,58,0.2);
  color: #fdf4e7;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.brand-tag i {
  font-size: 0.6rem;
}

.brand-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.brand-headline .accent {
  color: #c8973a;
  font-style: italic;
}

.brand-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 440px;
}

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  max-width: 440px;
}

.brand-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.brand-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #c8973a;
  line-height: 1;
  margin-bottom: 4px;
}

.brand-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-bottom {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.brand-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.35s ease;
}

.brand-bottom a:hover {
  color: #c8973a;
}

/* ═══════ RIGHT: FORM PANEL ═══════ */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: #fff;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 32px;
  transition: all 0.35s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.auth-back:hover {
  color: #800000;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-family: 'DM Sans', sans-serif;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Alert */
.alert-error {
  background: rgba(200,50,50,0.06);
  border-left: 3px solid #c0392b;
  color: #7a1f1f;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Form fields */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #800000;
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.7;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 2px solid #e5e5e0;
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: all 0.35s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #800000;
  box-shadow: 0 0 0 4px rgba(128,0,0,0.06);
}

.form-input::placeholder {
  color: #bbb;
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  transition: all 0.35s ease;
  font-size: 1rem;
}

.password-toggle:hover {
  color: #800000;
}

/* Row: remember + forgot */
.form-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #666;
}

.remember-check input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #800000;
  cursor: pointer;
}

.forgot-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: #800000;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.forgot-link:hover {
  color: #a00000;
  text-decoration: underline;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(128,0,0,0.2);
}

.btn-submit:hover {
  background: #600000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(128,0,0,0.3);
}

.btn-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #999;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e0;
}

/* Social buttons */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #e5e5e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
}

.social-btn:hover {
  border-color: #c8973a;
  color: #600000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.social-btn i {
  font-size: 1.1rem;
}

/* Sign-up prompt */
.auth-prompt {
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  font-size: 0.92rem;
  color: #666;
}

.auth-prompt a {
  color: #800000;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
}

.auth-prompt a:hover {
  color: #a00000;
  text-decoration: underline;
}

/* Role tabs */
.login-role-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 24px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}

.login-role-tab {
  padding: 9px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #777;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-role-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(128,0,0,0.05) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-role-tab:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease infinite;
}

.login-role-tab:hover {
  color: #333;
  background: rgba(128,0,0,0.04);
}

.login-role-tab.active {
  background: #fff;
  color: #800000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 991px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    padding: 40px 32px 32px;
    min-height: auto;
  }

  .brand-stats {
    display: none;
  }

  .brand-headline {
    font-size: 1.6rem;
  }

  .brand-sub {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .brand-bottom {
    display: none;
  }
}

@media (max-width: 575px) {
  .auth-form-panel {
    padding: 40px 24px;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .social-row {
    grid-template-columns: 1fr;
  }
}

/* Right Form Panel */
.login-form-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form-wrapper {
  width: 100%;
  max-width: 420px;
}
.login-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.login-form-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Role Tabs */
.login-role-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 24px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
}
.login-role-tab {
  padding: 9px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #777;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.login-role-tab:hover {
  color: #333;
  background: rgba(128,0,0,0.04);
}
.login-role-tab.active {
  background: #fff;
  color: #800000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* Form Fields */
.login-field {
  margin-bottom: 18px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  background: #fafafa;
  color: #1a1a1a;
  box-sizing: border-box;
}
.login-field input:focus {
  outline: none;
  border-color: #800000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(128,0,0,0.06);
}
.login-field input::placeholder {
  color: #bbb;
}

/* Actions Row */
.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}
.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  accent-color: #800000;
  cursor: pointer;
}
.login-forgot {
  background: none;
  border: none;
  color: #800000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}
.login-forgot:hover {
  text-decoration: underline;
}

/* Submit Button */
.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 6px 20px rgba(128,0,0,0.2);
}
.login-submit-btn:hover {
  background: #600000;
  box-shadow: 0 10px 28px rgba(128,0,0,0.3);
  transform: translateY(-1px);
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

/* Social Buttons */
.login-social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.login-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.login-social-btn:hover {
  border-color: #ccc;
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.login-social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Signup Link */
.login-signup-link {
  text-align: center;
  font-size: 14px;
  color: #555;
}
.login-link-btn {
  background: none;
  border: none;
  color: #800000;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-family: 'DM Sans', sans-serif;
}
.login-link-btn:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD — MODERN REDESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* Variables */
:root {
  --admin-bg: #f1f5f9;
  --admin-surface: #ffffff;
  --admin-sidebar: #0f172a;
  --admin-sidebar-hover: #1e293b;
  --admin-sidebar-active: #800000;
  --admin-primary: #800000;
  --admin-primary-hover: #600000;
  --admin-primary-light: #fef0ee;
  --admin-gold: #c8973a;
  --admin-gold-light: #fdf4e7;
  --admin-text: #1e293b;
  --admin-text-muted: #64748b;
  --admin-border: #e2e8f0;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-info: #3b82f6;
  --admin-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --admin-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --admin-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --admin-radius: 12px;
  --admin-radius-sm: 8px;
  --admin-radius-lg: 16px;
  --admin-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--admin-bg);
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--admin-transition);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background var(--admin-transition);
}

.admin-sidebar-header:hover {
  background: rgba(255,255,255,0.03);
}

.admin-sidebar-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

.admin-sidebar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.admin-sidebar-brand span {
  color: var(--admin-gold);
}

.admin-nav-section {
  padding: 24px 16px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--admin-transition);
  text-align: left;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  position: relative;
}

.admin-nav-btn:hover {
  background: var(--admin-sidebar-hover);
  color: #e2e8f0;
  transform: translateX(2px);
}

.admin-nav-btn.active {
  background: var(--admin-sidebar-active);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(128,0,0,0.3);
}

.admin-nav-btn.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--admin-gold);
  border-radius: 0 3px 3px 0;
}

.admin-nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.admin-nav-btn.active .admin-nav-badge {
  background: rgba(255,255,255,0.25);
}

.admin-nav-logout {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 10px;
}

.admin-nav-btn.logout-btn {
  color: #f87171;
}

.admin-nav-btn.logout-btn:hover {
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  height: 64px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--admin-shadow-sm);
  backdrop-filter: blur(8px);
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.admin-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.admin-breadcrumb-current {
  color: var(--admin-text);
  font-weight: 600;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--admin-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text);
  line-height: 1.3;
}

.admin-user-role {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  background: var(--admin-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}

/* Page Content */
.admin-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.admin-page-subtitle {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  margin: 0;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--admin-transition);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.admin-btn-primary {
  background: var(--admin-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(128,0,0,0.25);
}

.admin-btn-primary:hover {
  background: var(--admin-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(128,0,0,0.3);
}

.admin-btn-secondary {
  background: var(--admin-surface);
  color: var(--admin-text);
  border: 1.5px solid var(--admin-border);
}

.admin-btn-secondary:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  background: var(--admin-primary-light);
}

.admin-btn-success {
  background: var(--admin-success);
  color: #fff;
}

.admin-btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

.admin-btn-danger {
  background: #fff;
  color: var(--admin-danger);
  border: 1.5px solid #fecaca;
}

.admin-btn-danger:hover {
  background: #fef2f2;
  border-color: var(--admin-danger);
}

.admin-btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* Metric Cards */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.admin-metric-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 22px;
  transition: all var(--admin-transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.admin-metric-card:nth-child(1) { animation-delay: 0.05s; }
.admin-metric-card:nth-child(2) { animation-delay: 0.1s; }
.admin-metric-card:nth-child(3) { animation-delay: 0.15s; }
.admin-metric-card:nth-child(4) { animation-delay: 0.2s; }

.admin-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--admin-shadow-lg);
  border-color: #cbd5e1;
}

.admin-metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 80px;
  opacity: 0.04;
  background: var(--admin-primary);
}

.admin-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--admin-primary-light);
  color: var(--admin-primary);
}

.admin-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-metric-trend.up {
  background: #ecfdf5;
  color: #059669;
}

.admin-metric-trend.down {
  background: #fef2f2;
  color: var(--admin-danger);
}

.admin-metric-trend.neutral {
  background: #fffbeb;
  color: var(--admin-warning);
}

.admin-metric-label {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.admin-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: -0.03em;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.1;
}

/* Data Panels */
.admin-panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  margin-bottom: 24px;
  box-shadow: var(--admin-shadow-sm);
  animation: fadeInUp 0.5s ease both;
  animation-delay: 0.25s;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: -0.01em;
}

.admin-panel-body {
  padding: 0;
}

.admin-panel-body-padded {
  padding: 22px;
}

/* Tables */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table thead {
  background: #f8fafc;
}

.admin-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--admin-text);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background var(--admin-transition);
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.admin-badge-success {
  background: #ecfdf5;
  color: #059669;
}

.admin-badge-warning {
  background: #fffbeb;
  color: #d97706;
}

.admin-badge-danger {
  background: #fef2f2;
  color: var(--admin-danger);
}

.admin-badge-info {
  background: #eff6ff;
  color: var(--admin-info);
}

.admin-badge-neutral {
  background: #f1f5f9;
  color: var(--admin-text-muted);
}

/* Actions */
.admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--admin-transition);
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.admin-action-btn:hover {
  background: #f1f5f9;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-action-btn.edit:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--admin-info);
}

.admin-action-btn.delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--admin-danger);
}

.admin-action-btn.view:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--admin-success);
}

/* Grid layouts */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-3col-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Forms in admin */
.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 6px;
}

.admin-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--admin-transition);
  background: var(--admin-surface);
  color: var(--admin-text);
  box-sizing: border-box;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(128,0,0,0.06);
}

.admin-form-input::placeholder {
  color: #b0b8c4;
}

.admin-form-textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--admin-text);
}

.admin-form-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-primary);
  cursor: pointer;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.admin-modal {
  background: var(--admin-surface);
  border-radius: var(--admin-radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--admin-shadow-lg);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--admin-transition);
  color: var(--admin-text-muted);
  font-size: 1rem;
}

.admin-modal-close:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--admin-danger);
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--admin-transition);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.admin-tab:hover {
  color: var(--admin-text);
}

.admin-tab.active {
  color: var(--admin-primary);
  border-bottom-color: var(--admin-primary);
  font-weight: 600;
}

/* Search */
.admin-search {
  position: relative;
}

.admin-search input {
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--admin-transition);
  background: var(--admin-surface);
  color: var(--admin-text);
  width: 240px;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(128,0,0,0.06);
  width: 280px;
}

.admin-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Empty state */
.admin-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--admin-text-muted);
}

.admin-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.admin-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.admin-empty-text {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-dashboard-grid,
  .admin-3col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 20px 16px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-page-header {
    flex-direction: column;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .admin-search input {
    width: 160px;
  }

  .admin-search input:focus {
    width: 200px;
  }
}

/* Scrollbar */
.admin-sidebar::-webkit-scrollbar,
.admin-modal::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar::-webkit-scrollbar-thumb,
.admin-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* Activity feed */
.admin-activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f8fafc;
  animation: fadeInUp 0.4s ease both;
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.admin-activity-dot.green { background: var(--admin-success); }
.admin-activity-dot.blue { background: var(--admin-info); }
.admin-activity-dot.gold { background: var(--admin-gold); }
.admin-activity-dot.red { background: var(--admin-danger); }

.admin-activity-content {
  flex: 1;
}

.admin-activity-text {
  font-size: 0.85rem;
  color: var(--admin-text);
  line-height: 1.5;
}

.admin-activity-text strong {
  font-weight: 600;
}

.admin-activity-time {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Quick actions */
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--admin-surface);
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: all var(--admin-transition);
  text-align: left;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.admin-quick-action:hover {
  border-color: var(--admin-primary);
  background: var(--admin-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow);
}

.admin-quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--admin-primary-light);
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-quick-action-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-quick-action-desc {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .login-split-layout {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    padding: 24px 20px;
  }
  .login-form-wrapper {
    max-width: 100%;
  }
}
