/* ============================================================
   FUELDROP - SHARED DESIGN TOKENS & UTILITIES
   ============================================================ */

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

:root {
  --ink:        #06051A;
  --ink-2:      #171b28;
  --muted:      #667085;
  --line:       #e4e7ec;
  --line-dark:  rgba(255,255,255,.14);
  --surface:    #ffffff;
  --soft:       #f7f9fc;
  --blue:       #3B25DC;
  --blue-hover: #2E1BB8;
  --orange:     #EE7F3A;
  --success:    #16a34a;
  --danger:     #dc2626;
  --warning:    #d97706;
  --font:       'Plus Jakarta Sans', sans-serif;
}

html  { scroll-behavior: smooth; height: 100%; }
body  { font-family: var(--font); color: var(--ink); background: var(--surface); overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Shared split-panel layout (partner + admin login) ───────────────────── */
.split-wrap {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
}
.split-image {
  position: relative; overflow: hidden; background: #06051A;
}
.split-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: .75;
}
.split-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(59,37,220,.55) 0%, rgba(6,5,26,.7) 60%, rgba(6,5,26,.88) 100%);
}
.split-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(32px,5vw,64px);
}
.split-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 8px 16px; width: fit-content;
  color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 24px;
}
.split-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}
.split-content h2 {
  font-size: clamp(28px,3.5vw,48px); font-weight: 700;
  letter-spacing: -.06em; line-height: 1.08; color: #fff; margin-bottom: 16px;
}
.split-content h2 span { color: var(--orange); }
.split-content p {
  color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.7;
  max-width: 420px; margin-bottom: 32px;
}
.split-stats { display: flex; border-top: 1px solid rgba(255,255,255,.16); padding-top: 28px; }
.split-stat { flex: 1; padding: 0 28px; border-right: 1px solid rgba(255,255,255,.16); }
.split-stat:first-child { padding-left: 0; }
.split-stat:last-child  { border-right: none; }
.split-stat strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.05em; color: #fff; margin-bottom: 4px; }
.split-stat span   { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* Form side */
.form-side {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(32px,6vw,80px) clamp(24px,5vw,72px); background: #fafbfc; overflow-y: auto;
}
.form-inner { width: 100%; max-width: 420px; }
.form-logo  { display: inline-flex; align-items: center; margin-bottom: 36px; }
.form-logo img { width: 130px; height: auto; filter: invert(1) brightness(0); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 11px; color: #8896aa; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.field-wrap { position: relative; }
.field input {
  width: 100%; height: 52px; border: 1.5px solid #c8d0de;
  border-radius: 14px; background: #fff; padding: 0 46px 0 14px;
  color: var(--ink); font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input.no-icon { padding-right: 14px; }
.field input:hover   { border-color: #9ba3af; }
.field input:focus   { border-color: rgba(59,37,220,.5); box-shadow: 0 0 0 3px rgba(59,37,220,.08); }
.field input::placeholder { color: #b0bac8; }
.field input.err     { border-color: rgba(220,38,38,.55); }
.field-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; cursor: pointer; display: flex; align-items: center;
}
.field-icon:hover { color: #64748b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Buttons */
.btn-primary {
  width: 100%; height: 52px; border: none; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; position: relative; overflow: hidden;
  transition: background .2s, transform .15s;
}
.btn-primary:hover    { background: var(--blue-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-google {
  width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; transition: border-color .2s, background .2s;
}
.btn-google:hover { border-color: #9ba3af; background: #f7f8fa; }

/* Spinner */
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: fd-spin .7s linear infinite; position: absolute;
}
.btn-primary.loading .spinner  { display: block; }
.btn-primary.loading .btn-label { opacity: 0; }
@keyframes fd-spin { to { transform: rotate(360deg); } }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px; font-weight: 500;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Alert box */
.alert-error {
  display: none; align-items: center; gap: 8px;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: var(--danger); font-weight: 600; line-height: 1.5;
  margin-bottom: 14px;
}
.alert-error.show { display: flex; }
.alert-success {
  display: none; align-items: center; gap: 8px;
  background: #ecfdf3; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 11px 14px;
  font-size: 13px; color: var(--success); font-weight: 600; line-height: 1.5;
  margin-bottom: 14px;
}
.alert-success.show { display: flex; }

/* Misc */
.forgot-link { display: block; text-align: right; font-size: 12px; color: var(--blue); font-weight: 600; margin-top: -8px; margin-bottom: 16px; }
.forgot-link:hover { opacity: .75; }
.footer-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.footer-note a { color: var(--blue); font-weight: 700; }
.footer-note a:hover { opacity: .75; }
.terms-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 14px; text-align: center; }
.terms-note a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* Tab switcher */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.auth-tab {
  flex: 1; height: 44px; border: none; background: transparent;
  color: var(--muted); font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer; position: relative; transition: color .2s;
}
.auth-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 999px;
  transform: scaleX(0); transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { transform: scaleX(1); }
.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fd-fade .25s ease; }
@keyframes fd-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.auth-heading { font-size: 24px; font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 26px; }

/* Success circle */
.check-circle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; margin: 0 auto 18px;
  box-shadow: 0 8px 28px rgba(59,37,220,.25);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split-wrap { grid-template-columns: 1fr; }
  .split-image { min-height: 300px; }
  .split-stats { gap: 0; }
  .split-stat  { padding: 0 16px; }
}
@media (max-width: 600px) {
  /* Hide hero/image side on mobile - show only the form */
  .split-image { display: none; }
  .split-wrap  { grid-template-columns: 1fr; }
  .form-side   { padding: 32px 20px; min-height: 100vh; }
  .field-row   { grid-template-columns: 1fr; }
}
