/* ═══════════════════════════════════════════
   AUTH PAGES (Login / Register / Forgot Password)
   Requires: app.css loaded first
═══════════════════════════════════════════ */

* { box-sizing: border-box; }

.lc-auth-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

/* ── LEFT PANEL (brand / visual) ── */
.lc-auth-visual {
  background: linear-gradient(160deg, #0F0720 0%, #1E1035 45%, #2D1B69 75%, #1a1040 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}
.lc-auth-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 70%);
  pointer-events: none;
}
.lc-auth-visual::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
  pointer-events: none;
}
.lc-auth-logo {
  position: relative;
  z-index: 1;
}
.lc-auth-logo img {
  height: 36px;
  width: auto;
}
.lc-auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}
.lc-auth-visual-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: white;
  line-height: 1.3;
  margin-bottom: 16px;
}
.lc-auth-visual-content h2 span {
  background: linear-gradient(135deg, #F97316, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lc-auth-visual-content p {
  color: rgba(255,255,255,.6);
  font-size: 14.5px;
  line-height: 1.7;
}
.lc-auth-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
}
.lc-auth-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lc-auth-stat-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.lc-auth-trust-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 380px;
}
.lc-auth-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-auth-trust-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lc-auth-trust-text span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* ── RIGHT PANEL (form) ── */
.lc-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.lc-auth-form-wrap {
  width: 100%;
  max-width: 400px;
}
.lc-auth-mob-logo {
  display: none;
  margin-bottom: 28px;
}
.lc-auth-mob-logo img {
  height: 32px;
}
.lc-auth-form-header {
  margin-bottom: 28px;
}
.lc-auth-form-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  margin-bottom: 8px;
}
.lc-auth-form-header p {
  font-size: 14px;
  color: var(--muted);
}
.lc-auth-form-header p a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.lc-auth-form-header p a:hover { text-decoration: underline; }

/* ── ALERTS ── */
.lc-auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.lc-auth-alert--error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}
.lc-auth-alert--success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}
.lc-auth-alert svg { flex-shrink: 0; margin-top: 1px; }

/* ── TABS (Login / Register switch) ── */
.lc-auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--soft);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.lc-auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.18s;
}
.lc-auth-tab.lc-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── FORM ELEMENTS ── */
.lc-auth-form-group {
  margin-bottom: 18px;
}
.lc-auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lc-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lc-auth-input-wrap {
  position: relative;
}
.lc-auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}
.lc-auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: all 0.18s;
  background: white;
}
.lc-auth-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.lc-auth-input::placeholder { color: #9CA3AF; }
.lc-auth-toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  display: flex;
  padding: 0;
}
.lc-auth-toggle-pass:hover { color: var(--brand); }

/* ── REMEMBER / FORGOT ROW ── */
.lc-auth-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}
.lc-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}
.lc-auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.lc-auth-forgot-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.lc-auth-forgot-link:hover { text-decoration: underline; }

/* ── SUBMIT BUTTON ── */
.lc-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F97316, #F59E0B);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(249,115,22,.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lc-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(249,115,22,.4);
}

/* ── DIVIDER ── */
.lc-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.lc-auth-divider::before,
.lc-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── ALTERNATIVE LOGIN BUTTON ── */
.lc-auth-alt-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s;
  text-decoration: none;
  margin-bottom: 10px;
}
.lc-auth-alt-btn:hover {
  border-color: var(--brand);
  background: #FFF7ED;
  color: var(--ink);
}
.lc-auth-alt-btn--wa:hover {
  border-color: #25D366;
  background: #F0FDF4;
}

/* ── TERMS TEXT ── */
.lc-auth-terms {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
  text-align: center;
}
.lc-auth-terms a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.lc-auth-terms a:hover { text-decoration: underline; }

/* ── ROLE SELECTOR (register page) ── */
.lc-auth-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.lc-auth-role-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  display: block;
}
.lc-auth-role-card:hover {
  border-color: var(--brand);
  background: #FFF7ED;
}
.lc-auth-role-card.lc-selected {
  border-color: var(--brand);
  background: #FFF7ED;
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.lc-auth-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: background 0.18s;
}
.lc-auth-role-card.lc-selected .lc-auth-role-icon {
  background: linear-gradient(135deg, #F97316, #F59E0B);
}
.lc-auth-role-card.lc-selected .lc-auth-role-icon svg { stroke: white; }
.lc-auth-role-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── BACK TO HOME LINK ── */
.lc-auth-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  background: white;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all 0.18s;
}
.lc-auth-back:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── FORGOT NAV LINKS ── */
.lc-auth-forgot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.lc-auth-forgot-nav .lc-auth-forgot-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media(max-width: 968px) {
  .lc-auth-body {
    grid-template-columns: 1fr;
  }
  .lc-auth-visual {
    display: none;
  }
  .lc-auth-mob-logo {
    display: block;
  }
  .lc-auth-form-panel {
    padding: 80px 24px 40px;
  }
  .lc-auth-back {
    position: fixed;
  }
}
@media(max-width: 480px) {
  .lc-auth-form-row,
  .lc-auth-role-grid {
    grid-template-columns: 1fr;
  }
  .lc-auth-form-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
