@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Government Theme Color Palette */
  --primary-navy: #0B2E4F;
  --secondary-blue: #1E5AA8;
  --executive-gold: #D4AF37;
  --success-green: #1E7E34;
  --bg-light: #F4F7FA;
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --btn-grad-start: #005B96;
  --btn-grad-end: #0078D4;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 16px 40px rgba(11, 46, 79, 0.12);
  --focus-ring: rgba(30, 90, 168, 0.25);
  
  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
.exec-login-wrapper {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Top Executive Ribbon */
.top-executive-ribbon {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 8px 24px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--executive-gold);
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ribbon-status {
  background: var(--success-green);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* Split Screen Layout */
.split-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 38px - 70px); /* Fill remaining vertical space exactly */
  overflow: hidden;
}

/* Hide mobile branding on desktop by default */
.d-mobile-only {
  display: none !important;
}

/* Left Showcase Panel (60%) */
.left-showcase {
  flex: 0 0 60%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  overflow: hidden;
  color: #FFFFFF;
  z-index: 5;
}

/* Premium Dark Blue Overlay */
.left-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 25, 55, 0.88) 0%, rgba(0, 45, 95, 0.75) 100%);
  z-index: 1;
}

/* Subtle Watermark behind Left Panel */
.left-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.03; /* Subtle watermark */
  z-index: 2;
  pointer-events: none;
}

.left-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Branding Section */
.branding-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.branding-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.emblem-img {
  height: 68px;
  width: auto;
}

.logo-divider {
  width: 1.5px;
  height: 48px;
  background: #CBD5E1;
}

.watco-logo-img {
  height: 68px; /* Set height equal to emblem-img */
  width: auto;
}


/* Hero Titles */
.hero-titles-section {
  max-width: 90%;
  margin-top: 10px;
}

.project-title-large {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px 0;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-subtitle-large {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: #E2E8F0;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.mission-statement-box {
  border-left: 3px solid var(--executive-gold);
  padding-left: 16px;
  margin-top: 10px;
  max-width: 580px;
}

.mission-statement {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #CBD5E1;
  margin: 0;
  font-style: italic;
}

/* Showcase Metrics Grid */
.metrics-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 650px;
  margin-top: 20px;
}

.metric-card-interactive {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 300ms ease;
  backdrop-filter: blur(8px);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.metric-card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
}

.metric-card-interactive:hover::before {
  left: 100%;
}

.metric-card-interactive:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--executive-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #E2E8F0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.metric-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--executive-gold);
  font-size: 1rem;
}

.metric-card-interactive:first-child .metric-icon-wrap {
  background: rgba(30, 126, 52, 0.15);
  color: #4ade80;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
}

.metric-unit {
  font-size: 0.88rem;
  color: #CBD5E1;
}

.metric-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.metric-progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.physical-bar {
  background: #4ade80;
}

.financial-bar {
  background: var(--executive-gold);
}

.metric-footer-text {
  font-size: 0.74rem;
  color: #CBD5E1;
  display: flex;
  justify-content: space-between;
}

/* Right Login Panel (40%) */
.right-login {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #F4F7FA;
  position: relative;
  z-index: 10;
  height: 100%;
  overflow-y: auto;
}

/* Premium Glassmorphism Card */
.glass-login-card {
  width: 440px;
  max-width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px 36px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 300ms ease, box-shadow 300ms ease;
  animation: card-entrance 450ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


@keyframes card-entrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-login-card:hover {
  box-shadow: 0 20px 48px rgba(11, 46, 79, 0.16);
}

/* Card Header */
.card-header-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-logo {
  height: 42px;
  width: auto;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-main-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.card-subtitle {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.card-subtitle span {
  color: var(--secondary-blue);
  font-weight: 600;
}

/* Login Form Styles */
.login-form-exec {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-label-exec {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label-exec i {
  color: var(--secondary-blue);
  font-size: 0.82rem;
}

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

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 250ms ease;
}

/* Inputs styling */
.input-field-exec, .select-field-exec {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid #D2D6DC;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #FFFFFF;
  transition: all 250ms ease;
  outline: none;
}

.select-field-exec {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
}

.select-arrow-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-field-exec:focus, .select-field-exec:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 4px var(--focus-ring);
  background: #FFFFFF;
}

.input-field-exec:focus + .input-icon-left {
  color: var(--secondary-blue);
}

/* Password Toggle Eye Icon */
.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.password-toggle-btn:hover {
  color: var(--secondary-blue);
}

.input-field-exec[name="password"] {
  padding-right: 42px;
}

/* Remember & Forgot section */
.form-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.checkbox-label-exec {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.checkbox-exec {
  width: 16px;
  height: 16px;
  accent-color: var(--secondary-blue);
  cursor: pointer;
}

.forgot-password-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 200ms ease;
}

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

/* Submit Button */
.submit-btn-exec {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.24);
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn-exec:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.35);
  background: linear-gradient(135deg, #004b7c 0%, #006ec4 100%);
}

.submit-btn-exec:active {
  transform: translateY(0);
}

.submit-btn-exec i {
  font-size: 0.9rem;
  transition: transform 250ms ease;
}

.submit-btn-exec:hover i {
  transform: translateX(4px);
}

/* Flash alerts in Card */
.alert-container-exec {
  margin-top: 4px;
}

.alert-item-exec {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  animation: alert-pop 300ms cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes alert-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.alert-item-exec.danger {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1.5px solid #FCA5A5;
}

.alert-item-exec.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
}

/* Footer Section */
.footer-executive {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 10;
  height: 70px;
}

.footer-left-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  font-weight: 500;
  color: var(--text-dark);
}

.footer-attribution {
  font-size: 0.76rem;
}

.footer-design-emc {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emc-logo-footer {
  height: 28px;
  width: auto;
}

.footer-version {
  font-weight: 600;
  background: #E2E8F0;
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large screens and desktop scaling */
@media (max-width: 1440px) {
  .project-title-large {
    font-size: 2.1rem;
  }
}

@media (max-width: 1200px) {
  .left-showcase {
    padding: 32px;
  }
  .project-title-large {
    font-size: 1.8rem;
  }
  .glass-login-card {
    padding: 30px;
  }
}

/* Tablets and medium screens (Split layout is retained but stacked/adapted) */
@media (max-width: 1024px) {
  .split-container {
    flex-direction: row;
  }
  .left-showcase {
    flex: 0 0 50%;
  }
  .right-login {
    flex: 0 0 50%;
    padding: 24px;
  }
  .metrics-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Mobile Screens (Small tablet down to handheld phone) */
@media (max-width: 768px) {
  .top-executive-ribbon {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  
  .split-container {
    flex-direction: column;
    min-height: auto;
  }
  
  /* Hide heavy showcase/illustration background visual */
  .left-showcase {
    display: none; /* User explicitly requested: "Mobile Layout: Hide executive illustration. Convert to single column. Center card. Maintain branding." */
  }
  
  .right-login {
    flex: 1;
    width: 100%;
    padding: 40px 16px;
    background: #F4F7FA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Mobile Branding Header added dynamically in mobile or shown inside the card */
  .mobile-branding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    gap: 12px;
    width: 100%;
  }

  .mobile-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-emblem {
    height: 40px;
  }
  
  .mobile-watco {
    height: 40px; /* Set height equal to mobile-emblem */
  }

  .mobile-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
  }

  .mobile-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
  }
  
  .glass-login-card {
    width: 100%;
    padding: 28px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(11, 46, 79, 0.08);
  }

  /* Accessibility / touch targets */
  .input-field-exec, .select-field-exec, .submit-btn-exec {
    min-height: 48px; /* Touch target minimum */
  }
  
  .checkbox-label-exec {
    padding: 8px 0;
  }
  
  .footer-executive {
    flex-direction: column;
    height: auto;
    padding: 20px 16px;
    text-align: center;
    gap: 12px;
  }
  
  .footer-left-info {
    align-items: center;
  }
  
  .footer-design-emc {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .glass-login-card {
    padding: 24px 16px;
  }
  
  .card-main-title {
    font-size: 1.35rem;
  }
  
  .mobile-title {
    font-size: 1.15rem;
  }
  
  .form-options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
