/* Page Background & SimpleLogin Overrides */
body.simplelogin,
body.path-user,
.page-user-login #main-content {
  background: radial-gradient(circle at 50% 30%, #0b3fa8 0%, #031a52 45%, #020b24 100%) !important;
  min-height: 100vh !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Override SimpleLogin module inline width (360px) and wrapper styles */
.simplelogin-wrapper {
  background: transparent !important;
  min-height: 100vh !important;
  width: 100% !important;
  padding: 40px 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.simplelogin-form,
div.simplelogin-form {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.simplelogin-bg {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.simplelogin-logo,
.simplelogin-link,
.simplelogin-bg > .forgot-password,
.simplelogin-form > input[type="submit"] {
  display: none !important;
}

/* Base Form Reset */
#user-login-form {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}


/* Split Card Container */
.pms-login-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 640px;
  background: #070c1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 102, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 960px) {
  .pms-login-split-card {
    grid-template-columns: 1fr;
  }
  .pms-login-left-panel {
    display: none;
  }
}

/* ------------------------------------------------------------
   LEFT HERO PANEL
   ------------------------------------------------------------ */
.pms-login-left-panel {
  background: linear-gradient(135deg, #0043ce 0%, #002d9c 50%, #031754 100%);
  padding: 48px 44px;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Dot Matrix Watermark */
.dot-matrix-pattern {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.6;
  pointer-events: none;
}

.pms-brand-logo {
  margin-bottom: 28px;
}

.logo-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  display: block;
}

.logo-accent-line {
  display: block;
  width: 32px;
  height: 3px;
  background: #00e5ff;
  margin: 4px 0 6px 0;
  border-radius: 2px;
}

.logo-sub {
  font-size: 0.85rem;
  color: #00e5ff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.left-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.left-hero-subtitle {
  font-size: 0.92rem;
  color: #90caf9;
  margin: 0 0 32px 0;
}

/* Features List */
.hero-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e50e6 0%, #0f3cc9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 0.8rem;
  color: #bbdefb;
}

/* Bottom Highlight Quote Box */
.left-quote-card {
  background: rgba(2, 24, 89, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.quote-icon {
  font-size: 1.4rem;
  color: #64b5f6;
  flex-shrink: 0;
}

.quote-content strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.quote-content span {
  font-size: 0.78rem;
  color: #90caf9;
  line-height: 1.4;
  display: block;
}

/* ------------------------------------------------------------
   RIGHT LOGIN PANEL
   ------------------------------------------------------------ */
.pms-login-right-panel {
  background: #050b1a;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.right-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.35);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-bolt {
  color: #00e5ff;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.welcome-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

/* Tabs */
.login-mode-tabs {
  width: 100%;
  display: flex;
  background: #0d1527;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  gap: 4px;
}

.login-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.login-tab-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.login-panel {
  width: 100%;
}

/* Camera Viewport Box */
.face-login-viewport {
  position: relative !important;
  width: 100% !important;
  min-height: 280px !important;
  height: 280px !important;
  aspect-ratio: 16 / 10;
  background: #020614 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(0, 229, 255, 0.4) !important;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 229, 255, 0.15) !important;
  display: block !important;
  visibility: visible !important;
}

.face-login-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scaleX(-1) !important;
  display: block !important;
  z-index: 2 !important;
}

.face-login-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scaleX(-1) !important;
  z-index: 3 !important;
  display: none;
}

/* Action Buttons Row */
.action-buttons-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-secondary-photo {
  flex: 1;
  padding: 15px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary-photo:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

.camera-select-dropdown {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #020614;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  color: #38bdf8;
  outline: none;
}

/* Start Camera Overlay Button */
.start-camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 20, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: all 0.3s ease;
}

.btn-start-camera {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
  transition: all 0.25s ease;
}

.btn-start-camera:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}




.face-login-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 200px;
  pointer-events: none;
}

.face-mesh-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.target-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #00e5ff;
  border-style: solid;
  pointer-events: none;
}

.corner-tl { top: -10px; left: -10px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.corner-tr { top: -10px; right: -10px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.corner-bl { bottom: -10px; left: -10px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.corner-br { bottom: -10px; right: -10px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.face-login-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  animation: scanLine 2.2s infinite ease-in-out;
  box-shadow: 0 0 14px #00f0ff;
}

/* HUD Bar */
.hud-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(2, 6, 20, 0.85);
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 6px;
}

/* Status Alert Box */
.face-login-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #3b0712;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.status-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.status-msg-wrap strong {
  display: block;
  color: #f87171;
  margin-bottom: 2px;
}

.status-msg-wrap span {
  font-weight: 400;
  color: #fca5a5;
}

.face-login-status.success {
  background: #064e3b;
  color: #34d399;
  border-color: #059669;
}

.face-login-status.success .status-msg-wrap strong {
  color: #34d399;
}

/* Action Button - Reference Design Full Width */
.btn-primary-blue {
  width: 100% !important;
  margin-top: 16px !important;
  padding: 15px 20px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  border: 1px solid #38bdf8 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45) !important;
}

.btn-primary-blue:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6) !important;
}

.photo-fallback-wrap {
  margin-top: 12px;
  text-align: center;
}

.btn-link-photo {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-link-photo:hover {
  color: #38bdf8;
}

/* Hide duplicate outer submit buttons when in Face ID tab mode */
#user-login-form:not(.credentials-active) > #edit-actions,
#user-login-form:not(.credentials-active) > .form-actions,
.simplelogin-form > input[type="submit"],
.simplelogin-form > .form-actions {
  display: none !important;
}


.btn-arrow {
  font-size: 1.1rem;
}



/* Credentials Panel (inside right panel) */
#credentials-panel {
  padding: 8px 0;
}

#credentials-panel .form-item {
  margin-bottom: 16px;
  text-align: left;
}

#credentials-panel .form-actions {
  margin-top: 8px;
}

#user-login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

#user-login-form input[type="text"],
#user-login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  background: #020614;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
}

#user-login-form input[type="text"]:focus,
#user-login-form input[type="password"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

#user-login-form input[type="submit"] {
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
}

/* Global Footer */
.pms-login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-sep {
  opacity: 0.4;
}
