/**
 * Divine Campus ERP - Ultra Transparent Glossy Glassmorphism UI
 * Sizing: Compact, sleek (max-width: 405px)
 * Typography: Crisp white with refined weights and soft text shadow
 * Animations: Interactive Canvas Particles, 3D Gyro Tilt & Custom Dual Cursor
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary-crimson: #BB121D;
  --primary-hover: #991424;
  --theme-glow: rgba(187, 18, 29, 0.45);
  --theme-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --card-glass-bg: rgba(255, 255, 255, 0.12);
  --card-glass-border: rgba(255, 255, 255, 0.35);
  --input-bg: #FFFFFF;
  --input-text: #1E293B;
  --font-family: var(--theme-font);
}

html, body.glass-login-body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: #0b1329;
  color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glass-login-body * {
  box-sizing: border-box;
}

/* ====================================================
   FULL-SCREEN CAMPUS BACKGROUND & SLOW PAN/ZOOM
   ==================================================== */
.campus-bg-container {
  position: fixed;
  top: -4%;
  left: -4%;
  width: 108%;
  height: 108%;
  background-image: url('../img/backgrounds/campus_login_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: subtleCampusZoom 24s ease-in-out infinite alternate;
  z-index: 0;
  will-change: transform;
}

@keyframes subtleCampusZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.038); }
}

/* Soft Vignette Overlay */
.campus-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0.36) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Canvas for Floating Light Particles / Fireflies */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Custom Interactive Cursor System */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 200, 200, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1.2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25), inset 0 0 6px rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease, 
              background-color 0.22s ease, 
              box-shadow 0.22s ease, 
              opacity 0.3s ease;
  will-change: transform;
}

.cursor-ring.cursor-hover {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(187, 18, 29, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cursor-ring.cursor-clicking {
  border-color: var(--primary-crimson);
  box-shadow: 0 0 22px rgba(187, 18, 29, 0.85);
}

/* Ambient Cursor Torch Glow */
.cursor-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(187, 18, 29, 0.07) 38%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* Do not show/apply mouse pointer animation view on the glass-login-card */
.cursor-on-glass-card .cursor-dot,
.cursor-on-glass-card .cursor-ring,
.cursor-on-glass-card .cursor-ambient-glow,
body:has(.glass-login-card:hover) .cursor-dot,
body:has(.glass-login-card:hover) .cursor-ring,
body:has(.glass-login-card:hover) .cursor-ambient-glow {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.glass-login-card,
.glass-login-card * {
  cursor: auto;
}

.glass-login-card a,
.glass-login-card button,
.glass-login-card .btn,
.glass-login-card input[type="submit"],
.glass-login-card .btn-password-toggle,
.glass-login-card .captcha-refresh-btn,
.glass-login-card label,
.glass-login-card .theme-custom-radio {
  cursor: pointer !important;
}

.glass-login-card input[type="text"],
.glass-login-card input[type="password"] {
  cursor: text !important;
}


/* ====================================================
   CENTERED COMPACT ULTRA-TRANSPARENT GLOSSY GLASS CARD
   ==================================================== */
.glass-page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px 14px;
  box-sizing: border-box;
  width: 100%;
  perspective: 1200px;
  transition: padding 0.3s ease;
}

/* Dynamic Card Positioning across Viewports */
.glass-page-wrapper[data-card-position="left"] {
  align-items: flex-start;
  padding-left: clamp(24px, 8vw, 120px);
  padding-right: clamp(24px, 4vw, 40px);
}

.glass-page-wrapper[data-card-position="right"] {
  align-items: flex-end;
  padding-right: clamp(24px, 8vw, 120px);
  padding-left: clamp(24px, 4vw, 40px);
}

.glass-page-wrapper[data-card-position="center"] {
  align-items: center;
}

@media (max-width: 650px) {
  .glass-page-wrapper[data-card-position="left"],
  .glass-page-wrapper[data-card-position="right"],
  .glass-page-wrapper[data-card-position="center"] {
    align-items: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Compact, Sleek Card (max-width: 392px, reduced height) */
.glass-login-card {
  width: 100%;
  max-width: 392px;
  position: relative;
  overflow: hidden;
  /* Ultra-transparent glass with vibrant frosted blur */
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 16px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.30),
    0 6px 18px rgba(0, 0, 0, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 0 14px rgba(255, 255, 255, 0.06);
  padding: 20px 24px 16px 24px;
  box-sizing: border-box;
  animation: glassCardEntrance 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: none !important;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Specular Glare Shine Following Cursor - Disabled on glass-login-card */
.glass-login-card::before {
  display: none !important;
  content: none !important;
}

.glass-login-card:hover::before {
  display: none !important;
  opacity: 0 !important;
}

.glass-login-card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 
    0 26px 55px rgba(0, 0, 0, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.20),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 0 18px rgba(255, 255, 255, 0.1);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(14px)) {
  .glass-login-card {
    background: rgba(15, 23, 42, 0.84);
  }
}

/* Upward Glide Entrance */
@keyframes glassCardEntrance {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ====================================================
   CARD HEADER & LOGO BRANDING (COMPACT)
   ==================================================== */
.glass-card-header {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.glass-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  margin-bottom: 8px;
}

.glass-brand-logo {
  max-height: 36px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.glass-welcome-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}


/* ====================================================
   ALERTS & NOTIFICATIONS
   ==================================================== */
/* ====================================================
   ALERTS & NOTIFICATIONS (COMPACT)
   ==================================================== */
.glass-login-card .alert {
  position: relative;
  z-index: 2;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 10px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-width: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: alertFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.glass-login-card .alert-danger {
  background-color: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.55);
  color: #FEE2E2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.glass-login-card .alert-success {
  background-color: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.55);
  color: #D1FAE5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}


/* ====================================================
   FORM CONTROLS & SOLID WHITE INPUTS (COMPACT HEIGHT)
   ==================================================== */
.glass-auth-form {
  position: relative;
  z-index: 2;
}

.glass-form-group {
  margin-bottom: 11px;
  text-align: left;
}

.glass-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.glass-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.glass-input-icon {
  position: absolute;
  left: 13px;
  color: #64748B;
  font-size: 13.5px;
  pointer-events: none;
  z-index: 3;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Solid White Inputs - Compact 39px height */
.glass-input-control {
  width: 100%;
  height: 39px;
  padding: 6px 36px 6px 38px;
  background: var(--input-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--input-text);
  font-family: inherit;
  font-weight: 500;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.glass-input-control::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.glass-input-control:hover {
  border-color: #CBD5E1;
}

.glass-input-control:focus {
  background: #FFFFFF;
  border-color: var(--primary-crimson);
  box-shadow: 0 0 0 3px rgba(187, 18, 29, 0.25), 0 3px 8px rgba(0, 0, 0, 0.15);
}

.glass-input-control:focus ~ .glass-input-icon,
.glass-input-wrapper:focus-within .glass-input-icon {
  color: var(--primary-crimson);
  transform: scale(1.12);
}

.glass-form-group:focus-within .glass-form-label {
  color: #FFA4A9;
}

/* Radio Group (Student / Parent forgot password) */
.glass-radio-group {
  display: flex;
  gap: 8px;
  margin-top: 3px;
}

.glass-radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E293B;
  transition: all 0.2s ease;
  user-select: none;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.glass-radio-label input[type="radio"] {
  margin: 0;
  accent-color: var(--primary-crimson);
}

.glass-radio-label:hover {
  background: #FFFFFF;
  border-color: var(--primary-crimson);
}

.glass-radio-label:has(input:checked) {
  border-color: var(--primary-crimson);
  background: #FFFFFF;
  color: var(--primary-crimson);
  box-shadow: 0 0 0 2px rgba(187, 18, 29, 0.22);
}

/* Accessible Password Toggle Button */
.btn-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748B;
  font-size: 13.5px;
  padding: 4px 6px;
  cursor: pointer;
  z-index: 4;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-password-toggle:hover {
  color: var(--primary-crimson);
  transform: translateY(-50%) scale(1.12);
}

.btn-password-toggle:focus {
  outline: none;
  color: var(--primary-crimson);
}

/* Inline Field Errors - Crisp, High-Contrast Visibility Across All Themes */
.field-error-message:empty {
  display: none !important;
}

.field-error-message {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-top: 4px !important;
  color: #dc2626 !important;
  text-shadow: none !important;
  animation: alertFadeIn 0.3s ease;
}

.field-error-message p {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

[data-theme-layout="obsidian_dark"] .field-error-message,
.theme-layout-obsidian_dark .field-error-message,
.theme-card-obsidian_dark .field-error-message,
.theme-layout-obsidian .field-error-message {
  color: #f87171 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* ====================================================
   CAPTCHA GROUP & THEME INTEGRATION (COMPACT & POLISHED)
   ==================================================== */
/* ====================================================
   CAPTCHA GROUP & THEME INTEGRATION (PROPER ARRANGEMENT)
   ==================================================== */
.glass-captcha-group {
  margin-bottom: 14px;
  width: 100%;
}

.captcha-card-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Captcha Preview & Refresh Bar */
.captcha-preview-bar,
.captcha-display-box,
.captcha-image-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 10px 4px 10px;
  height: 48px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.captcha-img-holder,
#captcha_image {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  overflow: hidden;
  flex: 1;
}

.captcha-img-holder img,
#captcha_image img {
  max-height: 38px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  display: block !important;
  vertical-align: middle !important;
  user-select: none;
}

/* Captcha Refresh Button */
.btn-captcha-refresh,
.captcha-refresh-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--primary-crimson, #0284c7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-captcha-refresh:hover,
.captcha-refresh-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.btn-captcha-refresh:active,
.captcha-refresh-btn:active {
  transform: scale(0.96);
}

.captcha-refresh-icon {
  display: inline-block;
  font-size: 12px;
}

.captcha-refresh-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Captcha Input Wrapper & Full Width Control */
.captcha-input-wrapper {
  width: 100%;
  height: 42px;
  margin-bottom: 0 !important;
  position: relative;
  display: flex;
  align-items: center;
}

.captcha-input-wrapper .glass-input-control {
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}

.captcha-input-wrapper .glass-input-control::placeholder {
  letter-spacing: normal;
  font-weight: normal;
  text-transform: none;
}

/* Fallback for legacy .captcha-row to ensure stacked non-cramped view everywhere */
.glass-captcha-group .captcha-row,
.captcha-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.captcha-row > .captcha-image-box {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.captcha-row > .captcha-input-wrapper {
  width: 100% !important;
}

/* ----------------------------------------------------
   THEME-SPECIFIC CAPTCHA ADAPTATIONS
   ---------------------------------------------------- */
/* Theme 1: Enterprise Portal */
[data-theme-layout="enterprise_portal"] .captcha-preview-bar,
[data-theme-layout="enterprise_portal"] .captcha-image-box,
.theme-card-enterprise_portal .captcha-preview-bar,
.theme-card-enterprise_portal .captcha-image-box {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
[data-theme-layout="enterprise_portal"] .btn-captcha-refresh,
.theme-card-enterprise_portal .btn-captcha-refresh {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: var(--primary-crimson, #0284c7) !important;
  border-radius: 6px !important;
}
[data-theme-layout="enterprise_portal"] .btn-captcha-refresh:hover,
.theme-card-enterprise_portal .btn-captcha-refresh:hover {
  background: #E2E8F0 !important;
  color: #0369a1 !important;
}
[data-theme-layout="enterprise_portal"] .captcha-input-wrapper .glass-input-control,
.theme-card-enterprise_portal .captcha-input-wrapper .glass-input-control {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 8px !important;
  color: #0F172A !important;
}

/* Theme 2: Split-Panel Modern */
[data-theme-layout="split_modern"] .captcha-preview-bar,
[data-theme-layout="split_modern"] .captcha-image-box,
.theme-card-split_modern .captcha-preview-bar,
.theme-card-split_modern .captcha-image-box {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  height: 48px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
[data-theme-layout="split_modern"] .captcha-input-wrapper,
.theme-card-split_modern .captcha-input-wrapper {
  height: 44px !important;
  border-radius: 12px !important;
}
[data-theme-layout="split_modern"] .captcha-input-wrapper .glass-input-control,
.theme-card-split_modern .captcha-input-wrapper .glass-input-control {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
}
[data-theme-layout="split_modern"] .btn-captcha-refresh,
.theme-card-split_modern .btn-captcha-refresh {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: var(--primary-crimson, #805b68) !important;
  border-radius: 8px !important;
}
[data-theme-layout="split_modern"] .btn-captcha-refresh:hover,
.theme-card-split_modern .btn-captcha-refresh:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Theme 3: Soft Neumorphic 3D */
[data-theme-layout="neumorphic_clay"] .captcha-preview-bar,
[data-theme-layout="neumorphic_clay"] .captcha-image-box,
.theme-card-neumorphic_clay .captcha-preview-bar,
.theme-card-neumorphic_clay .captcha-image-box {
  background: #f0f3f8 !important;
  border: none !important;
  border-radius: 14px !important;
  height: 48px !important;
  box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #ffffff !important;
}
[data-theme-layout="neumorphic_clay"] .captcha-input-wrapper .glass-input-control,
.theme-card-neumorphic_clay .captcha-input-wrapper .glass-input-control {
  background: #f0f3f8 !important;
  border: none !important;
  border-radius: 14px !important;
  height: 44px !important;
  box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff !important;
}
[data-theme-layout="neumorphic_clay"] .btn-captcha-refresh,
.theme-card-neumorphic_clay .btn-captcha-refresh {
  color: var(--primary-crimson, #2563eb) !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-shadow: 2px 2px 5px #d1d9e6, -2px -2px 5px #ffffff !important;
  background: #f0f3f8 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}
[data-theme-layout="neumorphic_clay"] .btn-captcha-refresh:hover,
.theme-card-neumorphic_clay .btn-captcha-refresh:hover {
  box-shadow: inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #ffffff !important;
}

/* Theme 4: Obsidian Charcoal */
[data-theme-layout="obsidian_dark"] .captcha-preview-bar,
[data-theme-layout="obsidian_dark"] .captcha-image-box,
.theme-card-obsidian_dark .captcha-preview-bar,
.theme-card-obsidian_dark .captcha-image-box {
  background: #14161a !important;
  border: 1px solid #333842 !important;
  border-radius: 8px !important;
  height: 48px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
[data-theme-layout="obsidian_dark"] .captcha-img-holder img,
[data-theme-layout="obsidian_dark"] #captcha_image img,
.theme-card-obsidian_dark .captcha-img-holder img,
.theme-card-obsidian_dark #captcha_image img {
  filter: contrast(1.08) brightness(0.96);
  background: #ffffff;
  padding: 2px 4px;
  border-radius: 4px;
}
[data-theme-layout="obsidian_dark"] .captcha-input-wrapper .glass-input-control,
.theme-card-obsidian_dark .captcha-input-wrapper .glass-input-control {
  background: #14161a !important;
  border: 1px solid #333842 !important;
  border-radius: 8px !important;
  color: #F1F5F9 !important;
}
[data-theme-layout="obsidian_dark"] .btn-captcha-refresh,
.theme-card-obsidian_dark .btn-captcha-refresh {
  background: #23272f !important;
  border: 1px solid #333842 !important;
  color: #38bdf8 !important;
  border-radius: 6px !important;
}
[data-theme-layout="obsidian_dark"] .btn-captcha-refresh:hover,
.theme-card-obsidian_dark .btn-captcha-refresh:hover {
  background: #2d323c !important;
  color: #7dd3fc !important;
}

/* Theme 5: Frosted Glass */
[data-theme-layout="frosted_glass"] .captcha-preview-bar,
[data-theme-layout="frosted_glass"] .captcha-image-box,
.theme-card-frosted_glass .captcha-preview-bar,
.theme-card-frosted_glass .captcha-image-box {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}
[data-theme-layout="frosted_glass"] .captcha-input-wrapper .glass-input-control,
.theme-card-frosted_glass .captcha-input-wrapper .glass-input-control {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 10px !important;
  color: #0F172A !important;
}
[data-theme-layout="frosted_glass"] .btn-captcha-refresh,
.theme-card-frosted_glass .btn-captcha-refresh {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  color: var(--primary-crimson, #BB121D) !important;
  border-radius: 8px !important;
}
[data-theme-layout="frosted_glass"] .btn-captcha-refresh:hover,
.theme-card-frosted_glass .btn-captcha-refresh:hover {
  background: #FFFFFF !important;
  color: #990000 !important;
}

/* Theme 6: Custom Wallpaper */
[data-theme-layout="custom_wallpaper"] .captcha-preview-bar,
[data-theme-layout="custom_wallpaper"] .captcha-image-box,
.theme-card-custom_wallpaper .captcha-preview-bar,
.theme-card-custom_wallpaper .captcha-image-box {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
[data-theme-layout="custom_wallpaper"] .captcha-input-wrapper .glass-input-control,
.theme-card-custom_wallpaper .captcha-input-wrapper .glass-input-control {
  background: #FFFFFF !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0F172A !important;
}
[data-theme-layout="custom_wallpaper"] .btn-captcha-refresh,
.theme-card-custom_wallpaper .btn-captcha-refresh {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: var(--primary-crimson, #0284c7) !important;
  border-radius: 6px !important;
}
[data-theme-layout="custom_wallpaper"] .btn-captcha-refresh:hover,
.theme-card-custom_wallpaper .btn-captcha-refresh:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}


/* ====================================================
   SUBMIT BUTTON & GLOSSY HOVER ANIMATIONS (COMPACT)
   ==================================================== */
.glass-btn-submit {
  width: 100%;
  height: 39px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-crimson) 0%, var(--primary-hover) 100%);
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 2px 5px rgba(187, 18, 29, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
  margin-top: 4px;
  margin-bottom: 10px;
}

/* Sheen Beam across Button */
.glass-btn-submit::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glass-btn-submit:hover::after {
  left: 140%;
}

.glass-btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #7F0E1C 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36), 0 3px 8px rgba(187, 18, 29, 0.45);
}

.glass-btn-submit:hover i {
  transform: translateX(3px);
}

.glass-btn-submit i {
  transition: transform 0.2s ease;
}

.glass-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.glass-btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.28);
}


/* ====================================================
   SINGLE SIGN-ON (SSO) BUTTON & DIVIDER (CONFIGURABLE)
   ==================================================== */
.glass-sso-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  margin-bottom: 8px;
}

.glass-sso-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0 8px 0;
}

.glass-sso-divider::before,
.glass-sso-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.glass-sso-divider span {
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.glass-btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  background: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  color: #1E293B !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.glass-btn-sso:hover {
  background: #F8FAFC;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  color: #0F172A !important;
  text-decoration: none !important;
}

.glass-btn-sso:active {
  transform: translateY(0);
}

.glass-sso-icon {
  flex-shrink: 0;
  display: inline-block;
}

.google-signin-wrapper .g_id_signin {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.google-signin-wrapper .g_id_signin iframe {
  margin: 0 auto;
}

.google-signin-custom-btn {
  cursor: pointer;
  border: none;
}


/* ====================================================
   LINKS & CROSS-ROLE NAVIGATION (Crisp White Text)
   ==================================================== */
.glass-form-helper-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.glass-forgot-link {
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease, transform 0.2s ease;
}

.glass-forgot-link:hover {
  color: #FFA4A9;
  text-decoration: underline;
  transform: translateX(2px);
}

.glass-role-switcher {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12.5px;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.glass-role-switcher a {
  color: #FFA4A9;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.glass-role-switcher a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Announcements Box */
.glass-notices-box {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: left;
}

.glass-notices-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  margin-bottom: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.glass-notices-title i {
  color: #FFA4A9;
}

.glass-notices-scroll {
  max-height: 80px;
  overflow-y: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.glass-notices-scroll h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 3px 0 2px 0;
}

.glass-notices-scroll p {
  margin: 0 0 5px 0;
}

.glass-notices-scroll .more {
  color: #FFA4A9;
  font-weight: 700;
}


/* ====================================================
   ACCESSIBILITY & REDUCED MOTION
   ==================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .campus-bg-container {
    animation: none !important;
  }
  .cursor-dot,
  .cursor-ring,
  .ambient-canvas {
    display: none !important;
  }
}


/* ====================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ==================================================== */
@media (max-width: 500px) {
  .glass-page-wrapper {
    padding: 20px 14px;
  }
  .glass-login-card {
    max-width: 100%;
    padding: 24px 18px 20px 18px;
    border-radius: 16px;
  }
  .glass-brand-logo {
    max-height: 42px;
  }
  .glass-welcome-title {
    font-size: 21px;
  }
  .glass-input-control {
    height: 42px;
    font-size: 13.5px;
  }
  .glass-btn-submit {
    height: 42px;
  }
}

/* ====================================================
   DYNAMIC STUDIO EXTENSIONS: ANIMATIONS, EMBLEMS & CMS FOOTER
   ==================================================== */
/* Static background atmosphere mode */
.bg-anim-static .campus-bg-container,
[data-bg-anim="static"] .campus-bg-container {
  animation: none !important;
}

/* Card floating pulse mode */
.card-anim-floating,
[data-card-anim="floating"] .glass-login-card {
  animation: organicFloatPulse 6s ease-in-out infinite alternate !important;
}
@keyframes organicFloatPulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

/* Header Emblem styles */
.logo-clean-hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}
.logo-crest-minimal {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

/* Custom Tagline / Motto */
.glass-brand-tagline {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.25px;
  margin-top: 2px;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Dynamic Card Position Layouts */
.glass-page-wrapper[data-card-position="left"],
.glass-page-wrapper.pos-left {
  align-items: flex-start;
  padding-left: clamp(24px, 8vw, 110px);
}

.glass-page-wrapper[data-card-position="right"],
.glass-page-wrapper.pos-right {
  align-items: flex-end;
  padding-right: clamp(24px, 8vw, 110px);
}

.glass-page-wrapper[data-card-position="center"],
.glass-page-wrapper.pos-center {
  align-items: center;
}

@media (max-width: 650px) {
  .glass-page-wrapper[data-card-position="left"],
  .glass-page-wrapper[data-card-position="right"] {
    align-items: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Footer & Front CMS Integration */
.glass-login-footer {
  margin-top: 14px;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 392px;
}
.glass-footer-copyright {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  line-height: 1.4;
}

/* Cursor modes */
[data-mouse-anim="halo"] .cursor-dot,
[data-mouse-anim="halo"] .cursor-ring {
  display: none !important;
}
[data-mouse-anim="minimal"] .cursor-ring,
[data-mouse-anim="minimal"] .cursor-ambient-glow {
  display: none !important;
}
[data-mouse-anim="none"] .cursor-dot,
[data-mouse-anim="none"] .cursor-ring,
[data-mouse-anim="none"] .cursor-ambient-glow {
  display: none !important;
}

/* ====================================================
   GLOBAL LAYOUT ADDITIONS: HEADER BAR, POWERED-BY & NOTICES
   ==================================================== */

/* Top Header Bar */
.enterprise-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  z-index: 100;
  box-sizing: border-box;
}

.enterprise-header-logo {
  height: 38px;
  max-width: 200px;
  object-fit: contain;
}

.enterprise-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enterprise-header-crest {
  height: 42px;
  max-width: 55px;
  object-fit: contain;
}

.enterprise-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Adjust page wrapper when top header bar is present */
.glass-page-wrapper.has-header-bar {
  padding-top: 74px;
  padding-bottom: 50px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Bottom Powered-By Footer */
.enterprise-powered-by {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 50;
  pointer-events: auto;
}

.enterprise-powered-by img {
  height: 20px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Floating Notices Pill Button (Screenshot 1) */
.floating-notices-pill {
  position: fixed;
  bottom: 22px;
  right: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 9999px;
  padding: 7px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 990;
  text-decoration: none !important;
}

.floating-notices-pill:hover {
  background: var(--primary-crimson, #0284c7);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.floating-notices-pill .notices-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.2;
}

/* Slide-out Notices Drawer */
.notices-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.notices-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.notices-drawer-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 92vw);
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.notices-drawer-panel.is-open {
  right: 0;
}

.notices-drawer-header {
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notices-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notices-drawer-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.notices-drawer-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.notices-drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.notice-item-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notice-item-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notice-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.notice-item-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 6px;
}

.notice-item-date {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

/* ====================================================
   THEME 1: ENTERPRISE PORTAL (Screenshot 1)
   ==================================================== */
[data-theme-layout="enterprise_portal"] .glass-login-card,
.glass-login-card.theme-card-enterprise_portal,
.theme-layout-enterprise .glass-login-card {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  border-radius: 14px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme-layout="enterprise_portal"] .glass-welcome-title,
.theme-card-enterprise_portal .glass-welcome-title,
.theme-layout-enterprise .glass-welcome-title {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  text-shadow: none !important;
  margin-top: 4px !important;
  margin-bottom: 12px !important;
}

.has-header-bar[data-theme-layout="enterprise_portal"] .glass-logo-box,
.has-header-bar .theme-card-enterprise_portal .glass-logo-box,
.has-header-bar .theme-layout-enterprise .glass-logo-box {
  display: none !important;
}

[data-theme-layout="enterprise_portal"] .glass-brand-tagline,
.theme-layout-enterprise .glass-brand-tagline {
  color: #64748b !important;
  text-shadow: none !important;
}

[data-theme-layout="enterprise_portal"] .glass-form-label,
.theme-layout-enterprise .glass-form-label {
  color: #334155 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

[data-theme-layout="enterprise_portal"] .glass-input-wrapper,
.theme-layout-enterprise .glass-input-wrapper {
  background: #f0f4f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
}

[data-theme-layout="enterprise_portal"] .glass-input-wrapper:focus-within,
.theme-layout-enterprise .glass-input-wrapper:focus-within {
  background: #ffffff !important;
  border-color: var(--primary-crimson, #0284c7) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

[data-theme-layout="enterprise_portal"] .glass-input-control,
.theme-layout-enterprise .glass-input-control {
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme-layout="enterprise_portal"] .glass-input-icon,
.theme-layout-enterprise .glass-input-icon {
  color: #64748b !important;
}

[data-theme-layout="enterprise_portal"] .glass-submit-btn,
[data-theme-layout="enterprise_portal"] .glass-btn-submit,
.theme-layout-enterprise .glass-submit-btn,
.theme-layout-enterprise .glass-btn-submit {
  background: var(--primary-crimson, #0284c7) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  font-weight: 600 !important;
  padding: 11px !important;
}

[data-theme-layout="enterprise_portal"] .glass-link-subtle,
[data-theme-layout="enterprise_portal"] .glass-forgot-link,
.theme-layout-enterprise .glass-link-subtle,
.theme-layout-enterprise .glass-forgot-link {
  color: var(--primary-crimson, #0284c7) !important;
  text-shadow: none !important;
}

[data-theme-layout="enterprise_portal"] .glass-role-switcher,
.theme-layout-enterprise .glass-role-switcher {
  color: #64748b !important;
  text-shadow: none !important;
  border-top-color: #e2e8f0 !important;
}

[data-theme-layout="enterprise_portal"] .glass-role-switcher a,
.theme-layout-enterprise .glass-role-switcher a {
  color: var(--primary-crimson, #0284c7) !important;
}

/* ====================================================
   THEME 2: SPLIT-PANEL MODERN (Screenshot 2)
   ==================================================== */
[data-theme-layout="split_modern"] .glass-login-card,
.glass-login-card.theme-card-split_modern,
.theme-layout-split .glass-login-card {
  max-width: 860px !important;
  width: 94% !important;
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border-radius: 28px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35) !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.split-form-panel {
  flex: 1.1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.split-artwork-panel {
  flex: 1;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  margin: 12px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  box-sizing: border-box;
}

.split-artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}

.split-artwork-quote {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

[data-theme-layout="split_modern"] .glass-welcome-title {
  color: #0f172a !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-shadow: none !important;
  margin-bottom: 2px !important;
}

[data-theme-layout="split_modern"] .glass-brand-tagline {
  color: #64748b !important;
  text-align: left !important;
  text-shadow: none !important;
  margin-bottom: 22px !important;
  font-size: 13px !important;
}

[data-theme-layout="split_modern"] .glass-card-header {
  text-align: left !important;
  margin-bottom: 10px !important;
}

[data-theme-layout="split_modern"] .glass-input-wrapper {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

[data-theme-layout="split_modern"] .glass-input-wrapper:focus-within {
  border-color: var(--primary-crimson, #805b68) !important;
  box-shadow: 0 0 0 3px rgba(128, 91, 104, 0.18) !important;
}

[data-theme-layout="split_modern"] .glass-input-control {
  color: #0f172a !important;
}

[data-theme-layout="split_modern"] .glass-submit-btn {
  background: var(--primary-crimson, #805b68) !important;
  border-radius: 12px !important;
  padding: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(128, 91, 104, 0.3) !important;
}

[data-theme-layout="split_modern"] .glass-link-subtle {
  color: #64748b !important;
  text-shadow: none !important;
}

@media (max-width: 820px) {
  [data-theme-layout="split_modern"] .glass-login-card {
    flex-direction: column !important;
    max-width: 440px !important;
  }
  .split-artwork-panel {
    display: none !important;
  }
  .split-form-panel {
    padding: 30px 22px !important;
  }
}

/* ====================================================
   THEME 3: SOFT NEUMORPHIC 3D (Screenshot 3)
   ==================================================== */
[data-theme-layout="neumorphic_clay"] {
  background-color: #f0f3f8 !important;
}

[data-theme-layout="neumorphic_clay"] .glass-login-card,
.glass-login-card.theme-card-neumorphic_clay,
.theme-layout-neumorphic .glass-login-card {
  background: #f0f3f8 !important;
  border-radius: 28px !important;
  border: none !important;
  box-shadow: 18px 18px 36px #d1d9e6, -18px -18px 36px #ffffff !important;
  padding: 36px 30px !important;
  color: #1e293b !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme-layout="neumorphic_clay"] .glass-logo-box {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  box-shadow: 6px 6px 14px #d1d9e6, -6px -6px 14px #ffffff !important;
  background: #f0f3f8 !important;
  margin: 0 auto 14px !important;
  border: none !important;
}

[data-theme-layout="neumorphic_clay"] .glass-welcome-title {
  color: #1e293b !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

[data-theme-layout="neumorphic_clay"] .glass-brand-tagline {
  color: #64748b !important;
  text-shadow: none !important;
}

[data-theme-layout="neumorphic_clay"] .glass-input-wrapper {
  background: #f0f3f8 !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff !important;
}

[data-theme-layout="neumorphic_clay"] .glass-input-wrapper:focus-within {
  box-shadow: inset 5px 5px 9px #cbd5e1, inset -5px -5px 9px #ffffff, 0 0 0 2px var(--primary-crimson, #2563eb) !important;
}

[data-theme-layout="neumorphic_clay"] .glass-input-control {
  color: #1e293b !important;
}

[data-theme-layout="neumorphic_clay"] .glass-form-label,
.theme-layout-neumorphic .glass-form-label {
  color: #475569 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

[data-theme-layout="neumorphic_clay"] .glass-submit-btn,
[data-theme-layout="neumorphic_clay"] .glass-btn-submit,
.theme-layout-neumorphic .glass-submit-btn,
.theme-layout-neumorphic .glass-btn-submit {
  background: var(--primary-crimson, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 6px 6px 14px #cbd5e1, -6px -6px 14px #ffffff !important;
  font-weight: 700 !important;
}

[data-theme-layout="neumorphic_clay"] .glass-link-subtle,
[data-theme-layout="neumorphic_clay"] .glass-forgot-link,
.theme-layout-neumorphic .glass-link-subtle,
.theme-layout-neumorphic .glass-forgot-link {
  color: var(--primary-crimson, #2563eb) !important;
  text-shadow: none !important;
}

[data-theme-layout="neumorphic_clay"] .glass-role-switcher,
.theme-layout-neumorphic .glass-role-switcher {
  color: #64748b !important;
  text-shadow: none !important;
  border-top-color: #d1d9e6 !important;
}

[data-theme-layout="neumorphic_clay"] .glass-role-switcher a,
.theme-layout-neumorphic .glass-role-switcher a {
  color: var(--primary-crimson, #2563eb) !important;
}

/* ====================================================
   THEME 4: OBSIDIAN CHARCOAL & BOLD ACCENT (Screenshot 4)
   ==================================================== */
[data-theme-layout="obsidian_dark"] .glass-login-card,
.glass-login-card.theme-card-obsidian_dark,
.theme-layout-obsidian .glass-login-card {
  background: #1e2025 !important;
  border: 1px solid #2d3139 !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75) !important;
  color: #f1f5f9 !important;
  padding: 32px 28px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme-layout="obsidian_dark"] .glass-welcome-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-wrapper,
.theme-layout-obsidian_dark .glass-input-wrapper,
.theme-card-obsidian_dark .glass-input-wrapper,
.theme-layout-obsidian .glass-input-wrapper {
  background: #14161a !important;
  border: 1px solid #333842 !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-icon,
.theme-layout-obsidian_dark .glass-input-icon,
.theme-card-obsidian_dark .glass-input-icon,
.theme-layout-obsidian .glass-input-icon {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #23272f !important;
  padding: 0 14px !important;
  color: #94a3b8 !important;
  border-right: 1px solid #333842 !important;
  flex-shrink: 0 !important;
  transform: none !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-control,
.theme-layout-obsidian_dark .glass-input-control,
.theme-card-obsidian_dark .glass-input-control,
.theme-layout-obsidian .glass-input-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  height: 39px !important;
  padding: 6px 12px !important;
  flex: 1 !important;
  width: 100% !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-control::placeholder,
.theme-layout-obsidian_dark .glass-input-control::placeholder,
.theme-card-obsidian_dark .glass-input-control::placeholder,
.theme-layout-obsidian .glass-input-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-control::-webkit-input-placeholder,
.theme-layout-obsidian_dark .glass-input-control::-webkit-input-placeholder,
.theme-card-obsidian_dark .glass-input-control::-webkit-input-placeholder,
.theme-layout-obsidian .glass-input-control::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-control::-moz-placeholder,
.theme-layout-obsidian_dark .glass-input-control::-moz-placeholder,
.theme-card-obsidian_dark .glass-input-control::-moz-placeholder,
.theme-layout-obsidian .glass-input-control::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-control:-ms-input-placeholder,
.theme-layout-obsidian_dark .glass-input-control:-ms-input-placeholder,
.theme-card-obsidian_dark .glass-input-control:-ms-input-placeholder,
.theme-layout-obsidian .glass-input-control:-ms-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

[data-theme-layout="obsidian_dark"] .glass-input-wrapper:focus-within,
.theme-layout-obsidian_dark .glass-input-wrapper:focus-within,
.theme-card-obsidian_dark .glass-input-wrapper:focus-within,
.theme-layout-obsidian .glass-input-wrapper:focus-within {
  border-color: var(--primary-crimson, #f59e0b) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
}

[data-theme-layout="obsidian_dark"] .glass-submit-btn,
[data-theme-layout="obsidian_dark"] .glass-btn-submit,
.theme-layout-obsidian .glass-submit-btn,
.theme-layout-obsidian .glass-btn-submit {
  background: var(--primary-crimson, #f59e0b) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
}

[data-theme-layout="obsidian_dark"] .glass-link-subtle,
[data-theme-layout="obsidian_dark"] .glass-forgot-link,
.theme-layout-obsidian .glass-link-subtle,
.theme-layout-obsidian .glass-forgot-link {
  color: #94a3b8 !important;
  text-shadow: none !important;
}

[data-theme-layout="obsidian_dark"] .glass-link-subtle:hover,
[data-theme-layout="obsidian_dark"] .glass-forgot-link:hover {
  color: var(--primary-crimson, #f59e0b) !important;
}

/* ====================================================
   THEME 5: FROSTED GLASS & THEME 6: CUSTOM WALLPAPER
   ==================================================== */
[data-theme-layout="frosted_glass"] .glass-login-card,
.glass-login-card.theme-card-frosted_glass {
  background: var(--card-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--card-glass-border);
}

[data-theme-layout="custom_wallpaper"] .glass-login-card,
.glass-login-card.theme-card-custom_wallpaper,
.glass-login-card.theme-id-custom_wallpaper {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.40) !important;
}

[data-theme-layout="custom_wallpaper"] .glass-welcome-title,
.theme-card-custom_wallpaper .glass-welcome-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme-layout="custom_wallpaper"] .glass-brand-tagline,
.theme-card-custom_wallpaper .glass-brand-tagline {
  color: #475569 !important;
  text-shadow: none !important;
}

[data-theme-layout="custom_wallpaper"] .glass-form-label,
.theme-card-custom_wallpaper .glass-form-label {
  color: #334155 !important;
  text-shadow: none !important;
}

[data-theme-layout="custom_wallpaper"] .glass-input-wrapper,
.theme-card-custom_wallpaper .glass-input-wrapper {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

[data-theme-layout="custom_wallpaper"] .glass-input-control,
.theme-card-custom_wallpaper .glass-input-control {
  color: #0f172a !important;
}

[data-theme-layout="custom_wallpaper"] .glass-submit-btn,
[data-theme-layout="custom_wallpaper"] .glass-btn-submit,
.theme-card-custom_wallpaper .glass-submit-btn,
.theme-card-custom_wallpaper .glass-btn-submit {
  background: var(--primary-crimson, #0284c7) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

/* Dynamic Header Bar & Footer Adaptive Colors per Theme */
.theme-layout-neumorphic_clay .enterprise-header-bar {
  background: #f0f3f8 !important;
  border-bottom: 1px solid #d1d9e6 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}
.theme-layout-neumorphic_clay .enterprise-powered-by {
  color: #475569 !important;
  text-shadow: none !important;
}

.theme-layout-obsidian_dark .enterprise-header-bar {
  background: #14161a !important;
  border-bottom: 1px solid #282c34 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6) !important;
}
.theme-layout-obsidian_dark .enterprise-header-crest {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.theme-layout-obsidian_dark .enterprise-powered-by {
  color: #94a3b8 !important;
  text-shadow: 0 1px 3px #000 !important;
}

/* ====================================================
   THEME-WISE TYPOGRAPHY & FONT STYLE ENFORCEMENT
   ==================================================== */
[data-theme-layout="enterprise_portal"],
.theme-card-enterprise_portal,
.theme-layout-enterprise_portal {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

[data-theme-layout="split_modern"],
.theme-card-split_modern,
.theme-layout-split_modern {
  font-family: 'Outfit', sans-serif !important;
}

[data-theme-layout="neumorphic_clay"],
.theme-card-neumorphic_clay,
.theme-layout-neumorphic_clay {
  font-family: 'Nunito', sans-serif !important;
}

[data-theme-layout="obsidian_dark"],
.theme-card-obsidian_dark,
.theme-layout-obsidian_dark {
  font-family: 'Space Grotesk', sans-serif !important;
}

[data-theme-layout="frosted_glass"],
.theme-card-frosted_glass,
.theme-layout-frosted_glass {
  font-family: 'Inter', sans-serif !important;
}

[data-theme-layout="custom_wallpaper"],
.theme-card-custom_wallpaper,
.theme-layout-custom_wallpaper {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

