/* =========================================================
   login.css  –  Customer Login Page (Two-Column)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lp-bg:           #0b1437;
  --lp-surface:      #111e47;
  --lp-border:       #1e3168;
  --lp-text:         #e9edff;
  --lp-muted:        #7b8ec8;
  --lp-accent:       #4f73ff;
  --lp-accent2:      #3b82f6;
  --lp-accent-dark:  #3248d4;
  --lp-danger:       #f87171;
  --lp-danger-bg:    rgba(239,68,68,.12);
  --lp-success:      #34d399;
  --lp-success-bg:   rgba(52,211,153,.10);
  --lp-info-bg:      rgba(59,130,246,.12);
  --lp-shadow:       0 24px 54px rgba(0,0,0,.55);
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--lp-text);
  background: var(--lp-bg);
  -webkit-text-size-adjust: 100%;
}

/* ── Root wrapper ── */
.login-wrap {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
}

/* ═══════════════════════════════
   HERO PANEL (left)
   ═══════════════════════════════ */
.hero-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  animation: lpHeroPan 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(11,20,55,.55) 10%, rgba(4,10,40,.9) 100%);
  animation: lpOverlayGlow 7s ease-in-out infinite;
}

/* Brand on hero (top-left) */
.hero-brand {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.hero-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.hero-brand-name span { color: #93c5fd; }

/* Floating stat chips */
.hero-chips {
  position: absolute;
  top: 90px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.chip-teal { animation: lpFloat 4.8s ease-in-out infinite; }
.chip-blue { animation: lpFloat 5.6s ease-in-out infinite .3s; }
.chip-purple { animation: lpFloat 5.1s ease-in-out infinite .15s; }

.chip-teal   { background: rgba(20,184,166,.18); border: 1px solid rgba(20,184,166,.35); color: #5eead4; }
.chip-blue   { background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.35); color: #93c5fd; }
.chip-purple { background: rgba(167,139,250,.18); border: 1px solid rgba(167,139,250,.35); color: #c4b5fd; }

/* Bottom headline card */
.hero-footer-card {
  position: relative;
  z-index: 2;
  padding: 0 36px 36px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #93c5fd;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-footer-card h2 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-dots { display: flex; gap: 6px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.dot.dot-active {
  background: var(--lp-accent2);
  width: 20px;
  border-radius: 4px;
}

@keyframes lpHeroPan {
  0% { transform: scale(1.03) translateY(0); }
  100% { transform: scale(1.09) translateY(-10px); }
}

@keyframes lpOverlayGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: .92; }
}

@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════
   FORM PANEL (right)
   ═══════════════════════════════ */
.form-panel {
  flex: 0 0 440px;
  max-width: 440px;
  background: var(--lp-surface);
  border-left: 1px solid var(--lp-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--lp-border) transparent;
}

.form-panel-inner {
  padding: 40px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Mobile brand (hidden on desktop) */
.brand-mobile { display: none; }

/* ── Heading ── */
.form-heading {
  margin-bottom: 24px;
}

.form-heading h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}

.form-heading p {
  font-size: 13px;
  color: var(--lp-muted);
}

/* ── Alerts ── */
.lp-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.5;
}

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

.lp-alert-danger  { background: var(--lp-danger-bg);  border: 1px solid rgba(248,113,113,.2);  color: var(--lp-danger); }
.lp-alert-success { background: var(--lp-success-bg); border: 1px solid rgba(52,211,153,.2);   color: var(--lp-success); }
.lp-alert-info    { background: var(--lp-info-bg);    border: 1px solid rgba(59,130,246,.2);   color: #93c5fd; }

/* ── Field ── */
.field-group { margin-bottom: 18px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
  margin-bottom: 8px;
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  color: var(--lp-muted);
  pointer-events: none;
  z-index: 1;
}

.field-input {
  width: 100%;
  min-height: 50px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--lp-border);
  border-radius: 13px;
  padding: 12px 14px 12px 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--lp-text);
  transition: border-color .2s, box-shadow .2s;
}

.field-input::placeholder { color: #3a5080; }

.field-input:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px rgba(79,115,255,.2);
  background: rgba(255,255,255,.07);
}

.field-hint {
  margin-top: 7px;
  font-size: 12px;
  color: var(--lp-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Primary Button ── */
.btn-primary-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(79,115,255,.4);
  margin-bottom: 16px;
}

.btn-primary-action:hover   { opacity: .92; box-shadow: 0 6px 22px rgba(79,115,255,.5); }
.btn-primary-action:active  { transform: scale(.98); }
.btn-primary-action:disabled { opacity: .5; cursor: not-allowed; }

.btn-icon { font-size: 14px; }

/* ── Divider ── */
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--lp-muted);
  font-size: 12px;
  font-weight: 600;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lp-border);
}

/* ── Register row ── */
.register-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lp-muted);
  flex-wrap: wrap;
}

.link-register {
  color: var(--lp-accent2);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* ═══════════════════════════════
   OTP STEP
   ═══════════════════════════════ */
.otp-top {
  text-align: center;
  margin-bottom: 20px;
}

.otp-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(79,115,255,.15);
  border: 1px solid rgba(79,115,255,.3);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: var(--lp-accent);
}

.otp-top h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--lp-text);
  margin-bottom: 6px;
}

.otp-top p {
  font-size: 13px;
  color: var(--lp-muted);
  margin-bottom: 4px;
}

.otp-phone-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-accent);
}

/* OTP input boxes */
.otp-inputs-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.otp-inputs-wrap input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: rgba(255,255,255,.05);
  color: var(--lp-text);
  transition: border-color .2s, box-shadow .2s;
}

.otp-inputs-wrap input:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px rgba(79,115,255,.2);
}

.otp-inputs-wrap input.filled {
  border-color: var(--lp-accent);
  background: rgba(79,115,255,.1);
}

.otp-timer {
  text-align: center;
  font-size: 12px;
  color: var(--lp-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-verify { margin-top: 0; }

/* ── OTP footer links ── */
.otp-footer-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.otp-resend,
.otp-back {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color .15s;
}

.otp-resend:not(:disabled):hover,
.otp-back:hover { color: var(--lp-text); }

.otp-resend:disabled { opacity: .45; cursor: not-allowed; }

/* ── Footer ── */
.lp-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  color: var(--lp-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.lp-footer a {
  color: var(--lp-muted);
  text-decoration: none;
}

.lp-footer a:hover { color: var(--lp-text); }

.lp-footer .sep { opacity: .4; }

/* ── Validation ── */
.invalid-feedback {
  display: block;
  font-size: 12px;
  color: var(--lp-danger);
  margin-top: 5px;
}

.spinner-border.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }

/* ═══════════════════════════════
   RESPONSIVE – single column ≤900px
   ═══════════════════════════════ */
@media (max-width: 900px) {
  .hero-panel { display: none; }

  .login-wrap { background: var(--lp-bg); }

  .form-panel {
    flex: unset;
    max-width: 100%;
    width: 100%;
    border-left: none;
    min-height: 100vh;
    min-height: 100svh;
  }

  .form-panel-inner { padding: 28px 20px 24px; }

  .brand-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
  }

  .brand-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
  }

  .brand-name-sm {
    font-size: 18px;
    font-weight: 800;
    color: var(--lp-text);
  }

  .brand-name-sm span { color: #93c5fd; }
}

@media (max-width: 480px) {
  .form-panel-inner { padding: 20px 16px 20px; }
  .form-heading h1 { font-size: 22px; }
  .otp-inputs-wrap input { width: 42px; height: 50px; font-size: 20px; }
}
