/* =============================================
   CYBERVIS Client Portal — Login (Synex Style)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #F5F5F5;
  color: #1A1A2E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* ─── SPLIT LAYOUT ──────────────────────────── */
.modern-login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  padding: 20px;
  gap: 20px;
  background: #FFF0EA;
}

/* ─── LEFT BRAND PANEL ──────────────────────── */
.login-brand-panel {
  flex: 1.1;
  background: #1A1A2E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
}

.login-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 138, 91, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(108, 60, 225, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.brand-logo { display: none; }

/* Logo block */
.cyber-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
  align-self: flex-start;
}

.cyber-logo-img {
  height: 68px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-text {
  display: none;
}

/* Editorial headline */
.brand-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
}

.brand-title .highlight {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 48px;
  font-weight: 400;
  max-width: 440px;
}

/* Feature list */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 440px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Footer tagline on brand panel */
.brand-content::after {
  content: '';
  display: block;
}

/* ─── RIGHT FORM PANEL ──────────────────────── */
.login-form-panel {
  flex: 1;
  background: #F5F5F5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 60px;
  position: relative;
  overflow-y: auto;
  border-radius: 28px;
}

.form-container {
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-header {
  margin-bottom: 36px;
  text-align: left;
}

/* Pill badge */
.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 46, 0.04);
  border: 1px solid rgba(26, 26, 46, 0.08);
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-icon {
  width: 20px;
  height: 20px;
  background: #1A1A2E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  width: 12px !important;
  height: 12px !important;
  filter: brightness(0) invert(1);
}

.badge-text {
  font-size: 11px;
  font-weight: 500;
  color: #1A1A2E;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #1A1A2E;
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 15px;
  color: #6b6b6b;
  font-weight: 400;
  line-height: 1.5;
}

/* ─── FORM ELEMENTS ─────────────────────────── */
.modern-form-group {
  margin-bottom: 18px;
}

.modern-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  color: #9a9a9a;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.modern-input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 46px;
  background: #fff;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1A1A2E;
  transition: all 0.2s ease;
  outline: none;
}

.modern-input::placeholder {
  color: #b8b8b8;
  font-weight: 400;
}

.modern-input:hover {
  border-color: rgba(26, 26, 46, 0.15);
}

.modern-input:focus {
  background: #fff;
  border-color: #1A1A2E;
  box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.04);
}

/* Password toggle */
.password-toggle-modern {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  transition: all 0.2s ease;
  z-index: 3;
}

.password-toggle-modern:hover {
  color: #1A1A2E;
  background: rgba(26, 26, 46, 0.04);
}

.password-toggle-modern i { font-size: 14px; }

/* Primary button */
.modern-btn {
  width: 100%;
  height: 52px;
  background: #1A1A2E;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.005em;
  margin-top: 8px;
  position: relative;
}

.modern-btn::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.modern-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4);
}

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

.btn-loader i { font-size: 16px; }

/* Footer links */
.modern-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.modern-link {
  color: #1A1A2E;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.15);
}

.modern-link:hover {
  color: #1A1A2E;
  border-bottom-color: #1A1A2E;
}

.divider-text {
  color: #c4c4c4;
  font-size: 13px;
  font-weight: 400;
}

/* ─── LOGIN FOOTER ──────────────────────────── */
.login-footer {
  position: absolute;
  bottom: 30px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9a9a9a;
}

.login-footer p { margin: 0; }

.login-footer a {
  color: #1A1A2E;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.login-footer a:hover { opacity: 0.6; }

.login-footer a i { font-size: 11px; }

/* ─── ALERTS ────────────────────────────────── */
.modern-alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: alertSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

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

.modern-alert i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.modern-alert-success {
  background: rgba(255, 107, 43, 0.06);
  color: #2f3d24;
  border-color: rgba(255, 107, 43, 0.18);
}
.modern-alert-success i { color: #FF6B2B; }

.modern-alert-danger {
  background: rgba(220, 38, 38, 0.06);
  color: #8a1c1c;
  border-color: rgba(220, 38, 38, 0.18);
}
.modern-alert-danger i { color: #dc2626; }

.modern-alert-info {
  background: rgba(26, 26, 46, 0.04);
  color: #1a1a1a;
  border-color: rgba(26, 26, 46, 0.08);
}
.modern-alert-info i { color: #1A1A2E; }

/* ─── FORM CHECK (terms checkbox) ───────────── */
.form-check {
  padding-left: 28px;
  position: relative;
  margin-bottom: 20px;
}

.form-check-input {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #1A1A2E;
  cursor: pointer;
}

.form-check-label {
  font-size: 12.5px !important;
  color: #6b6b6b !important;
  line-height: 1.55;
  cursor: pointer;
}

.form-check-label .modern-link {
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(26, 26, 46, 0.2);
}

/* ─── BOOTSTRAP GRID OVERRIDES ──────────────── */
.row {
  display: flex;
  gap: 12px;
  margin: 0 0 0 0;
}
.row > [class^="col-"] { flex: 1; padding: 0; }
.col-6 { flex: 1; }

/* ─── REGISTER TWO-COL INPUT TWEAKS ─────────── */
.modern-input[id="regFirstName"],
.modern-input[id="regLastName"] {
  padding-left: 16px !important;
}

/* ─── D-NONE (bootstrap) ────────────────────── */
.d-none { display: none !important; }

/* ─── BOOTSTRAP MODAL THEMING ───────────────── */
.modal-content {
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.modal-header {
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  padding: 20px 24px;
}

.modal-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #1A1A2E;
}

.modal-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: #3a3a3a;
}

.modal-body ul { padding-left: 20px; margin-top: 10px; }
.modal-body li { margin-bottom: 8px; }

.modal-footer {
  border-top: 1px solid rgba(26, 26, 46, 0.06);
  padding: 14px 24px;
}

.modal-footer .btn-secondary {
  background: #1A1A2E;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.modal-header .close {
  font-size: 24px;
  color: #9a9a9a;
  opacity: 1;
  background: transparent;
  border: none;
  padding: 0 8px;
}

.modal-header .close:hover { color: #1A1A2E; }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .modern-login-container {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .login-brand-panel {
    padding: 40px 32px;
    min-height: 340px;
    flex: 0 0 auto;
    border-radius: 20px;
  }
  .login-form-panel {
    padding: 40px 32px;
    flex: 1 0 auto;
    border-radius: 20px;
  }
  .login-footer {
    position: static;
    margin-top: 30px;
    left: auto;
    right: auto;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  body { overflow: auto; height: auto; }
}

@media (max-width: 640px) {
  .modern-login-container { padding: 0; gap: 0; background: #F5F5F5; }
  .login-brand-panel {
    padding: 32px 24px;
    min-height: 280px;
    border-radius: 0;
  }
  .login-form-panel {
    padding: 32px 24px;
    border-radius: 0;
  }
  .form-title { font-size: 30px; }
  .brand-title { font-size: 34px; }
  .brand-subtitle { font-size: 14px; margin-bottom: 32px; }
  .feature-text { font-size: 13px; }
  .modern-input { height: 48px; font-size: 14px; }
  .modern-btn { height: 48px; font-size: 14px; }
}

/* ─── CUSTOM SCROLLBAR ──────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }
