/* ============================================================
   Auth pages — login.html & signup.html
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  min-height: 100vh;
}

/* ── Layout ── */
.auth-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  padding: 20px;
  gap: 20px;
}

/* ── Left dark panel ── */
.auth-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border-radius: 20px;
  min-height: calc(100vh - 40px);
}
.auth-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('/app/lbg.png');
  background-size: 102% 102%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  border-radius: 20px;
}
.auth-nav { display: none; }
.auth-nav-logo { height: 30px; width: auto; }
.auth-nav-brand { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }

.auth-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 40px;
}
.auth-hero img {
  max-width: 100%;
  max-height: 100%;
  width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.auth-ticker-wrap { display: none; }
.auth-ticker-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.auth-ticker-wrap:hover .auth-ticker-track { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.auth-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 40px;
  padding: 7px 14px;
  flex-shrink: 0;
}
.auth-ticker-item-name { font-size: 12px; font-weight: 600; color: #fff; display: block; }
.auth-ticker-item-sub  { font-size: 11px; color: rgba(255,255,255,0.5); display: block; }

.auth-lmove-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
  margin-top: auto;
  border-radius: 0 0 20px 20px;
}
.auth-lmove-track {
  display: flex;
  width: max-content;
  animation: lmoveScroll 20s linear infinite;
}
@keyframes lmoveScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.auth-lmove-track img {
  height: 250px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0 12px;
}

/* ── Right white panel ── */
.auth-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 340px;
}

.auth-title    { font-size: 26px; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-bottom: 5px; }
.auth-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 26px; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-google:hover { background: #f9fafb; border-color: #d1d5db; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-field { position: relative; margin-bottom: 12px; }
.auth-field-row { display: flex; gap: 10px; }
.auth-field-row .auth-field { flex: 1; margin-bottom: 12px; }
.auth-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #f9fafb;
  font-family: inherit;
}
.auth-input::placeholder { color: #9ca3af; }
.auth-input:focus { border-color: #42697B; background: #fff; box-shadow: 0 0 0 3px rgba(66,105,123,0.1); }
.auth-input.error { border-color: #ef4444; }

.auth-pw-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9ca3af;
  display: flex; align-items: center; padding: 0;
}
.auth-pw-toggle:hover { color: #374151; }

.auth-forgot {
  display: block; text-align: right; font-size: 12.5px;
  color: #42697B; text-decoration: none; margin-top: -6px; margin-bottom: 16px; font-weight: 500;
}
.auth-forgot:hover { color: #1a3a4a; text-decoration: underline; }

.btn-auth-submit {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1a3a4a 0%, #42697B 40%, #5a8fa3 70%, #42697B 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s;
  font-family: inherit;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 10px rgba(26,58,74,0.25);
}
.btn-auth-submit:hover { opacity: 0.9; }
.btn-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-footer-link { margin-top: 18px; text-align: center; font-size: 13px; color: #6b7280; }
.auth-footer-link a { color: #1a3a4a; font-weight: 700; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }
.auth-terms { margin-top: 12px; text-align: center; font-size: 11.5px; color: #9ca3af; line-height: 1.5; }
.auth-terms a { color: #6b7280; }

.auth-alert { padding: 10px 13px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 14px; display: none; }
.auth-alert.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; display: block; }
.auth-alert.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }
.auth-alert.info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; display: block; }

.pw-strength-wrap { display: flex; gap: 4px; align-items: center; margin-bottom: 10px; }
.pw-strength-bars { display: flex; gap: 3px; flex: 1; }
.pw-strength-bar  { flex: 1; height: 3px; border-radius: 2px; background: #e5e7eb; transition: background 0.2s; }
.pw-strength-bar.weak   { background: #ef4444; }
.pw-strength-bar.fair   { background: #f59e0b; }
.pw-strength-bar.good   { background: #10b981; }
.pw-strength-bar.strong { background: #059669; }
.pw-strength-label { font-size: 11px; color: #9ca3af; min-width: 44px; text-align: right; }

.fp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.fp-modal {
  background: #fff; border-radius: 16px; padding: 30px;
  width: 340px; max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); position: relative;
}
.fp-modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  cursor: pointer; color: #9ca3af; font-size: 18px; line-height: 1;
  width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.fp-modal-close:hover { background: #f3f4f6; color: #374151; }
.fp-modal-title { font-size: 18px; font-weight: 800; color: #111827; margin-bottom: 5px; }
.fp-modal-sub   { font-size: 13px; color: #6b7280; margin-bottom: 18px; line-height: 1.5; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ── MOBILE — single clean block ── */
@media (max-width: 768px) {
  .auth-wrap {
    padding: 0;
    gap: 0;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    padding: 60px 24px;
    align-items: center;
    justify-content: center;
  }

  .auth-form-wrap {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .auth-title    { font-size: 24px; }
  .auth-subtitle { font-size: 13px; margin-bottom: 22px; }
  .auth-input    { font-size: 16px; }
}

@media (max-width: 400px) {
  .auth-field-row { flex-direction: column; }
  .auth-field-row .auth-field { margin-bottom: 12px; }
  .auth-right { padding: 48px 18px; }
}