/* ==========================================================================
   WORKPULSE — UNIFIED SPLIT DUAL LOGIN PAGE STYLESHEET (css/login.css)
   ========================================================================== */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #0F2E52 0%, var(--navy-dark) 60%, #04121F 100%);
  position: relative;
  overflow-x: hidden;
  padding: 24px;
}

/* Subtle corporate ambient glows */
.login-body::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(201, 154, 50, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-body::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(29, 95, 143, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Main Split Stage Container */
.login-split-card {
  width: 100%;
  max-width: 1060px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201, 154, 50, 0.25);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
  z-index: 2;
  min-height: 620px;
}

/* Left Showcase Panel (Deep Navy & Classical Gold) */
.login-showcase-panel {
  background: linear-gradient(145deg, var(--navy-dark) 0%, #0B253D 100%);
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  position: relative;
  border-right: 2px solid var(--gold-primary);
}

.login-showcase-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 154, 50, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.brand-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-frame {
  height: 62px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gold-soft);
}

.brand-logo-frame img {
  height: 100%;
  width: auto;
  display: block;
}

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

.brand-display-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.brand-tagline-sub {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-soft);
  font-weight: 700;
}

/* Middle Narrative Content */
.showcase-narrative {
  margin: 40px 0;
}

.showcase-headline {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.showcase-headline span {
  color: var(--gold-soft);
  display: block;
}

.showcase-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: 24px;
}

.showcase-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201, 154, 50, 0.2);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-primary);
  flex-shrink: 0;
}

.showcase-footer-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

/* Right Interactive Login Card Panel */
.login-form-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.login-panel-title {
  font-size: 1.45rem;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.login-panel-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Dual Mode Toggle Bar: [ Admin Login ] [ Staff Login ] */
.login-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-main);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  position: relative;
}

.role-tab-btn {
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.role-tab-btn.active {
  background: var(--navy-dark);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(7, 26, 43, 0.15);
}

.role-tab-btn.active svg {
  color: var(--gold-soft);
}

/* Form Styling */
.password-input-wrap {
  position: relative;
}

.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

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

.login-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-dark);
}

.forgot-link {
  color: var(--royal-blue);
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Error Banner */
.login-error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.login-error-banner.visible {
  display: flex;
}

/* Quick Demo Account Selector Bar */
.demo-accounts-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.demo-strip-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.demo-btn-row {
  display: flex;
  gap: 8px;
}

.demo-chip-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--navy-dark);
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  text-align: left;
  transition: var(--transition-fast);
}

.demo-chip-btn:hover {
  background: #FFFFFF;
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}

.demo-chip-role {
  display: block;
  font-size: 0.68rem;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .login-split-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .login-showcase-panel {
    padding: 32px 28px;
    border-right: none;
    border-bottom: 2px solid var(--gold-primary);
  }
  .login-form-panel {
    padding: 36px 28px;
  }
  .showcase-narrative {
    margin: 20px 0;
  }
  .showcase-headline {
    font-size: 1.7rem;
  }
}
