/* GAPLOW Modern Executive Login Portal (Sample Layout Specification) */

.login-view {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(224, 231, 255, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(237, 233, 254, 0.5) 0%, transparent 45%),
    linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #EEF2F6 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Background Wavy Art Illustration (Bottom-Left) */
.login-bg-decor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58vw;
  max-width: 820px;
  height: 420px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Central Two-Column Grid */
.login-container {
  width: 100%;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 10;
}

/* Background Wave Vector */
.login-bg-decor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 420px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Bottom-Left Dot Matrix Decor */
.login-decor-dots {
  position: absolute;
  left: 48px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.login-decor-dots .dot-row {
  display: flex;
  gap: 10px;
}

.login-decor-dots .dot-row span {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background-color: #818CF8;
  opacity: 0.35;
}

/* Side Accent Dots */
.login-side-dots {
  position: absolute;
  left: 28px;
  top: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  pointer-events: none;
}

.login-side-dots span {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background-color: #818CF8;
  opacity: 0.4;
}

/* ─── Left Column: Hero & Value Propositions ─── */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.login-brand-top {
  margin-bottom: 36px;
}

.login-brand-logo-img {
  height: 67px;
  width: auto;
  max-width: 280px;
  display: block;
}

.login-hero-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 37px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 16px 0;
}

.login-hero-highlight {
  color: #384AE8;
  display: block;
}

.login-hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: #64748B;
  margin: 0 0 32px 0;
  max-width: 440px;
}

/* 3 Feature Benefit List Items */
.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F46E5;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.06);
}

.feature-icon-box .material-symbols-outlined {
  font-size: 22px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
}

/* ─── Right Column: Clean Floating White Auth Card ─── */
.login-card-wrapper {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08),
    0 0 1px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-sizing: border-box;
}

/* Card Header */
.login-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-card-title-group {
  text-align: center;

}

.login-card-title-group h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.login-card-title-group p {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  font-weight: 400;
}

/* Form Groups & Inputs */
.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

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

.auth-input-prefix-icon {
  position: absolute;
  left: 14px;
  font-size: 18px !important;
  color: #64748B;
  pointer-events: none;
}

.auth-form-field {
  width: 100%;
  height: 44px;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  padding: 0 14px 0 42px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  background: #FFFFFF;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.auth-form-field:focus {
  outline: none;
  border-color: #3B52E8;
  box-shadow: 0 0 0 3px rgba(59, 82, 232, 0.12);
}

.auth-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s ease;
}

.auth-pw-toggle:hover {
  color: #475569;
}

.auth-pw-toggle .material-symbols-outlined {
  font-size: 19px;
}

/* Primary Action Button */
.auth-submit-action {
  width: 100%;
  height: 46px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4338CA 0%, #3B52E8 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.28);
  transition: all 0.18s ease;
}

.auth-submit-action:hover {
  background: linear-gradient(135deg, #3730A3 0%, #2E40CD 100%);
  box-shadow: 0 6px 18px rgba(67, 56, 202, 0.35);
  transform: translateY(-1px);
}

/* ─── Forgot Password Link & Modal ─── */
.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.auth-forgot-link {
  font-size: 12.5px;
  font-weight: 500;
  color: #4338CA;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.auth-forgot-link:hover {
  color: #2E40CD;
  text-decoration: underline;
}

/* Modal Backdrop */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: modalOverlayFadeIn 0.2s ease-out;
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Card */
.auth-modal-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.22),
              0 0 1px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.95);
  position: relative;
  box-sizing: border-box;
  animation: modalCardSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.auth-modal-close .material-symbols-outlined {
  font-size: 20px;
}

/* Modal Header */
.auth-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #EEF2FF;
  color: #4338CA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.12);
}

.auth-modal-icon-badge .material-symbols-outlined {
  font-size: 28px;
}

.auth-modal-header h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.auth-modal-header p {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.45;
  margin: 0;
}

.auth-cancel-btn {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.auth-cancel-btn:hover {
  color: #0F172A;
  background: #F8FAFC;
}

.auth-modal-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.auth-modal-success-icon .material-symbols-outlined {
  font-size: 32px;
}

.auth-submit-action .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.15s ease;
}

.auth-submit-action:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* Divider */
.auth-demo-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 16px;
}

.auth-demo-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #E2E8F0;
}

.auth-demo-divider span {
  position: relative;
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.04em;
}

/* Demo Accounts Dropdown Component */
.demo-dropdown-container {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.demo-dropdown-header {
  margin-bottom: 7px;
}

.demo-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.demo-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.demo-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
  text-align: left;
}

.demo-dropdown-trigger:hover {
  border-color: #384AE8;
  background: #F8FAFC;
}

.demo-dropdown-trigger.open,
.demo-dropdown-trigger:focus-visible {
  border-color: #384AE8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 74, 232, 0.12);
  background: #FFFFFF;
}

.demo-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-trigger-icon {
  font-size: 20px;
  color: #384AE8;
  flex-shrink: 0;
}

.demo-trigger-text {
  font-size: 13px;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-trigger-text strong {
  font-weight: 700;
  color: #0F172A;
}

.demo-trigger-chevron {
  font-size: 20px;
  color: #64748B;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 8px;
}

.demo-dropdown-trigger.open .demo-trigger-chevron {
  transform: rotate(180deg);
  color: #384AE8;
}

/* Floating Drop-Up Menu (Opens upwards to prevent screen edge/taskbar blocking) */
.demo-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 -12px 32px -4px rgba(15, 23, 42, 0.14),
    0 -4px 12px -2px rgba(15, 23, 42, 0.06);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
  box-sizing: border-box;
  transform-origin: bottom center;
}

.demo-dropdown-menu.open {
  display: flex;
  animation: demoMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes demoMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.demo-dropdown-item:hover {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.demo-dropdown-item.active {
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.demo-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #EEF2FF;
  color: #384AE8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #E0E7FF;
}

.demo-dropdown-item.active .demo-item-icon-box {
  background: #384AE8;
  color: #FFFFFF;
  border-color: #384AE8;
}

.demo-item-icon-box .material-symbols-outlined {
  font-size: 18px;
}

.demo-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-item-title {
  font-size: 13px;
  color: #0F172A;
  line-height: 1.3;
}

.demo-item-title strong {
  font-weight: 700;
}

.demo-item-email {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 1px;
}

.demo-check-icon {
  font-size: 18px;
  color: #384AE8;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.demo-dropdown-item.active .demo-check-icon {
  opacity: 1;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 1024px) {
  .login-view {
    padding: 32px 24px;
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .login-left {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .login-brand-top {
    display: flex;
    justify-content: center;
  }

  .login-card-wrapper {
    justify-content: center;
  }

  .login-card {
    max-width: 480px;
  }

  .login-hero-title {
    font-size: 38px;
  }

  .login-bg-decor,
  .login-decor-dots,
  .login-side-dots {
    display: none;
  }
}

/* Login Error Alert Banner */
.login-error-alert {
  display: none;
  background-color: #FFDAD6;
  color: #BA1A1A;
  border: 1px solid #BA1A1A;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.login-error-alert:empty,
#login-error:empty,
#forgot-modal-alert:empty {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}