/* ==========================================================================
   Tracklify Business Suite — Auth Pages (Login & Register)
   Kobble.ng Inspired Warm Stone, Crisp Cards & Trust-Driven Layouts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --auth-bg: #FAF9F5;
  --auth-card: #FFFFFF;
  --auth-border: #E2E0D5;
  --auth-border-light: #ECEAE1;
  --auth-ink: #14160F;
  --auth-slate: #1A202C;
  --auth-muted: #6B6B60;
  
  --auth-green: #16A34A;
  --auth-green-hover: #15803D;
  --auth-green-deep: #0D7A57;
  --auth-green-subtle: #EBF5EA;
  
  --auth-orange: #FF882A;
  --auth-lime: #D9F477;
  
  --auth-radius-input: 13px;
  --auth-radius-btn: 14px;
  --auth-radius-card: 26px;
  --auth-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

html, body, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .brand, strong.brand-text {
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.fa, .fas, .far, .fal, .fad, .fab {
  font-family: 'Font Awesome 5 Free' !important;
}
.fab {
  font-family: 'Font Awesome 5 Brands' !important;
}

body.tracklify-auth-body {
  background: radial-gradient(circle at 85% 12%, rgba(217, 244, 119, 0.25) 0%, transparent 35%),
              radial-gradient(circle at 10% 80%, rgba(22, 163, 74, 0.08) 0%, transparent 40%),
              #FAF9F5 !important;
  color: var(--auth-ink) !important;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth Container Box ── */
.auth-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
}
.auth-card-split {
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-card);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

/* ── Left Showcase Panel ── */
.auth-showcase-panel {
  background: linear-gradient(155deg, #102B22 0%, #153A2E 50%, #0D221B 100%);
  color: #FFFFFF;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-showcase-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 244, 119, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  margin-bottom: 36px;
}
.auth-brand-badge .logo-sq {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--auth-green);
  display: grid;
  place-items: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.auth-brand-badge strong {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.auth-showcase-h {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #FFFFFF;
}
.auth-showcase-h span {
  color: var(--auth-lime);
}
.auth-showcase-p {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 28px;
}
.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.5;
}
.auth-feature-item i {
  color: var(--auth-lime);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Testimonial Pill in Auth Showcase ── */
.auth-quote-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: auto;
}
.auth-quote-pill p {
  font-size: 12px;
  font-style: italic;
  color: #E2E8F0;
  line-height: 1.6;
  margin: 0 0 10px;
}
.auth-quote-pill .author {
  font-size: 11px;
  font-weight: 700;
  color: var(--auth-lime);
}

/* ── Right Form Panel ── */
.auth-form-panel {
  padding: 48px 50px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  color: var(--auth-slate);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.auth-form-panel p.subhead {
  font-size: 14px;
  color: var(--auth-muted);
  margin: 0 0 28px;
}

/* ── Modern Form Inputs (Kobble-style) ── */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-slate);
  margin-bottom: 7px;
}
.input-with-icon {
  position: relative;
}
.input-with-icon i.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.18s ease;
}
.k-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px 13px 44px;
  background: #FAF9F5;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-input);
  font-size: 14px;
  font-family: inherit;
  color: var(--auth-ink);
  transition: all 0.2s ease;
  outline: none;
}
.k-input:focus {
  background: #FFFFFF;
  border-color: var(--auth-green);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.k-input:focus + i.input-icon, .input-with-icon:focus-within i.input-icon {
  color: var(--auth-green-deep);
}
.toggle-pwd-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  font-size: 13px;
}
.toggle-pwd-btn:hover {
  color: var(--auth-slate);
}

/* ── Primary Submit Button ── */
.btn-auth-submit {
  width: 100%;
  padding: 14px 22px;
  border-radius: var(--auth-radius-btn);
  background: var(--auth-green);
  color: #FFFFFF;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px -4px rgba(22, 163, 74, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}
.btn-auth-submit:hover {
  background: var(--auth-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(22, 163, 74, 0.42);
}

/* ── Auth Links & Dividers ── */
.auth-footer-links {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-muted);
}
.auth-footer-links a {
  color: var(--auth-green-deep);
  font-weight: 700;
  text-decoration: none;
}
.auth-footer-links a:hover {
  text-decoration: underline;
}

/* ── Alerts & Badges ── */
.auth-alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Responsive Behavior ── */
@media (max-width: 900px) {
  .auth-card-split {
    grid-template-columns: 1fr;
  }
  .auth-showcase-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 36px 26px;
  }
}
