/* =============================================================
   Samudra LMS — Login Page  (redesign 2026)
   Split-screen: dark navy branding (left) + white form (right)
   ============================================================= */

:root {
  --lp-navy:       #0f2385;
  --lp-navy-dark:  #0a1247;
  --lp-navy-mid:   #0d1f7a;
  --lp-accent:     #F97316;
  --lp-text:       #0F172A;
  --lp-muted:      #64748B;
  --lp-light:      #94A3B8;
  --lp-border:     #E2E8F0;
  --lp-bg:         #FFFFFF;
  --lp-bg-soft:    #F8FAFF;
  --lp-radius:     12px;
  --lp-danger:     #EF4444;
}

/* ── Astra layout resets ── */
body.lp-page #content,
body.lp-page #content.site-content          { padding: 0 !important; width: 100% !important; }
body.lp-page .ast-container,
body.lp-page .site-content .ast-container,
body.lp-page #content .ast-container        { max-width: 100% !important; width: 100% !important; padding: 0 !important; display: block !important; }
body.lp-page {
  font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  overflow-x: hidden;
  background: var(--lp-bg-soft);
}

.lp-wrap { width: 100%; display: block; }
.lp-wrap *, .lp-wrap *::before, .lp-wrap *::after { box-sizing: border-box; }
.lp-wrap a   { text-decoration: none; color: inherit; }
.lp-wrap p, .lp-wrap h1, .lp-wrap h2, .lp-wrap h3 { margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════
   SPLIT LAYOUT
══════════════════════════════════════════════════ */
.lp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

/* ══════════════════════════════════════════════════
   LEFT — DARK BRANDING PANEL
══════════════════════════════════════════════════ */
.lp-brand {
  background: linear-gradient(145deg, #080e38 0%, #0f2385 52%, #0b1a6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 52px;
  position: relative;
  overflow: hidden;
}

/* Decorative glows */
.lp-brand::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.12) 0%, transparent 70%);
  top: -160px; right: -140px;
  pointer-events: none;
}
.lp-brand::after {
  content: '';
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  pointer-events: none;
}

.lp-brand-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
}

/* ── Logo ── */
.lp-brand-logo {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 44px;
}
.lp-brand-logo-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.lp-brand-logo-name {
  font-size: 17px; font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -.01em;
}
.lp-brand-logo-sub {
  font-size: 10.5px; color: rgba(255,255,255,.5);
  margin-top: 2px; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Headline ── */
.lp-brand-headline {
  font-size: 36px; font-weight: 900;
  color: #fff; line-height: 1.18;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.lp-brand-accent { color: var(--lp-accent); }

/* ── Description ── */
.lp-brand-desc {
  font-size: 14.5px; color: rgba(255,255,255,.62);
  line-height: 1.7; margin-bottom: 36px;
  max-width: 380px;
}

/* ── Feature list ── */
.lp-features {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.lp-feature {
  display: flex; align-items: flex-start; gap: 14px;
}
.lp-feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-fi-blue   { background: rgba(96,165,250,.18);  color: #93C5FD; }
.lp-fi-green  { background: rgba(52,211,153,.18);  color: #6EE7B7; }
.lp-fi-yellow { background: rgba(251,191,36,.18);  color: #FCD34D; }
.lp-fi-purple { background: rgba(167,139,250,.18); color: #C4B5FD; }
.lp-feature-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3; }
.lp-feature-desc { font-size: 12px; color: rgba(255,255,255,.52); margin-top: 2px; line-height: 1.5; }

/* ── Dashboard Preview Mockup ── */
.lp-preview {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lp-preview-bar {
  background: rgba(255,255,255,.06);
  padding: 9px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-preview-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.lp-preview-dot:nth-child(1) { background: #FF5F57; }
.lp-preview-dot:nth-child(2) { background: #FEBC2E; }
.lp-preview-dot:nth-child(3) { background: #28C840; }
.lp-preview-title {
  font-size: 11px; color: rgba(255,255,255,.45);
  margin-left: 6px; font-weight: 500;
}
.lp-preview-body { padding: 14px 16px 16px; }
.lp-preview-welcome {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}
.lp-preview-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  margin-bottom: 12px;
}
.lp-preview-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px; padding: 8px 6px; text-align: center;
}
.lp-preview-stat-val { font-size: 12px; font-weight: 800; color: #fff; }
.lp-preview-stat-lbl { font-size: 9px; color: rgba(255,255,255,.45); margin-top: 2px; }
.lp-preview-stat--accent .lp-preview-stat-val { color: var(--lp-accent); }
.lp-preview-chart { height: 48px; margin-bottom: 10px; }
.lp-preview-chart svg { width: 100%; height: 100%; }
.lp-preview-prog { display: flex; flex-direction: column; gap: 6px; }
.lp-preview-prog-bar {
  height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden;
}
.lp-preview-prog-fill {
  height: 100%; border-radius: 3px;
  background: var(--lp-fill-color, #60A5FA);
}

/* ══════════════════════════════════════════════════
   RIGHT — LOGIN FORM PANEL
══════════════════════════════════════════════════ */
.lp-right {
  background: var(--lp-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 52px;
}

.lp-card {
  width: 100%; max-width: 400px;
}

/* ── Heading ── */
.lp-heading { text-align: center; margin-bottom: 28px; }
.lp-heading-icon {
  width: 58px; height: 58px; border-radius: 15px;
  background: rgba(15,35,133,.08);
  border: 1px solid rgba(15,35,133,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--lp-navy); margin: 0 auto 18px;
}
.lp-heading h1 {
  font-size: 27px; font-weight: 800; color: var(--lp-text);
  letter-spacing: -.028em; margin-bottom: 7px;
}
.lp-heading p  { font-size: 14px; color: var(--lp-muted); }

/* ── Alert ── */
.lp-alert {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 9px;
}
.lp-alert.error {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  color: var(--lp-danger);
}
.lp-alert.success {
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.22);
  color: #15803D;
}
.lp-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Heading icon colour variants (used on forgot/reset pages) */
.lp-heading-icon--success {
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.20);
  color: #16A34A;
}
.lp-heading-icon--danger {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.18);
  color: #DC2626;
}

/* ── Form fields ── */
.lp-field { margin-bottom: 18px; }
.lp-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--lp-text); margin-bottom: 7px;
}
.lp-input-wrap { position: relative; }
.lp-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--lp-light); width: 17px; height: 17px; pointer-events: none;
}
.lp-wrap .lp-input {
  width: 100%; padding: 13px 14px 13px 42px !important;
  border: 1.5px solid var(--lp-border); border-radius: var(--lp-radius);
  font-size: 14.5px; color: var(--lp-text);
  background: var(--lp-bg-soft);
  font-family: inherit; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.lp-wrap .lp-input[type="password"] { padding-right: 46px !important; }
.lp-wrap .lp-input:focus {
  border-color: var(--lp-navy);
  background: var(--lp-bg);
  box-shadow: 0 0 0 3.5px rgba(15,35,133,.09);
}
.lp-wrap .lp-input::placeholder { color: var(--lp-light); }
.lp-wrap .lp-input.error { border-color: var(--lp-danger); }

.lp-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 3px;
  color: var(--lp-light); display: flex; border-radius: 5px;
  transition: color .18s;
}
.lp-eye-btn:hover { color: var(--lp-navy); }
.lp-eye-btn:focus-visible { outline: 2px solid var(--lp-navy); outline-offset: 1px; }

/* ── Remember + Forgot ── */
.lp-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; font-size: 13px;
}
.lp-remember {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; color: var(--lp-muted); user-select: none;
}
.lp-remember input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--lp-navy); cursor: pointer;
}
.lp-forgot {
  color: var(--lp-navy); font-weight: 600;
  font-size: 13px; transition: opacity .18s;
}
.lp-forgot:hover { opacity: .72; }

/* ── Sign In button ── */
body .lp-btn {
  width: 100%; padding: 14px;
  background: var(--lp-navy); color: #fff;
  border: none; border-radius: var(--lp-radius);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: .015em;
  transition: background .18s, box-shadow .18s, transform .14s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
body a.lp-btn{
  color: #fff;
}
body .lp-btn:hover {
  background: var(--lp-navy-dark);
  box-shadow: 0 8px 24px rgba(15,35,133,.30);
  transform: translateY(-1px);
}
body .lp-btn:active  { transform: translateY(0); box-shadow: none; }
body .lp-btn:focus-visible { outline: 2px solid var(--lp-navy); outline-offset: 3px; }
body .lp-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.lp-btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: lp-spin .7s linear infinite;
  display: none;
}
body .lp-btn.loading .lp-btn-spinner { display: inline-block; }
body .lp-btn.loading .lp-btn-text    { display: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
.lp-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0; font-size: 12px; color: var(--lp-light);
  letter-spacing: .04em;
}
.lp-divider::before, .lp-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--lp-border);
}

/* ── Social buttons (2-column grid) ── */
.lp-social {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.lp-social-btn {
  padding: 11px 14px;
  background: var(--lp-bg); border: 1.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  font-size: 13.5px; font-weight: 600; color: var(--lp-text);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.lp-social-btn:hover {
  border-color: #a0aec0;
  background: var(--lp-bg-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.lp-social-btn:focus-visible { outline: 2px solid var(--lp-navy); outline-offset: 2px; }
.lp-social-btn svg { flex-shrink: 0; }

/* ── Sign-up / Free Trial link ── */
.lp-signup-link {
  text-align: center; margin-top: 22px;
  font-size: 13.5px; color: var(--lp-muted);
}
.lp-signup-link a { color: var(--lp-navy); font-weight: 700; }
.lp-signup-link a:hover { text-decoration: underline; }

/* ── Secure note ── */
.lp-secure {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 18px;
  font-size: 12px; color: var(--lp-light);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .lp-layout { grid-template-columns: 1fr; min-height: auto; }
  .lp-brand  { display: none; }
  .lp-right  { min-height: calc(100vh - 80px); padding: 40px 28px; }
}
@media (max-width: 540px) {
  .lp-right  { padding: 32px 18px; }
  .lp-card   { max-width: 100%; }
  .lp-heading h1 { font-size: 23px; }
  .lp-wrap .lp-input { padding: 12px 13px 12px 40px !important; }
  .lp-wrap .lp-input[type="password"] { padding-right: 42px !important; }
}
@media (max-width: 400px) {
  .lp-social { grid-template-columns: 1fr; }
  .lp-meta   { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lp-right  { padding: 24px 14px; }
}

/* Tablet: show branding but compact it */
@media (min-width: 961px) and (max-width: 1200px) {
  .lp-brand  { padding: 44px 36px; }
  .lp-brand-headline { font-size: 28px; }
  .lp-right  { padding: 40px 36px; }
  .lp-card   { max-width: 360px; }
}

/* ── Inline field error ─────────────────────────────────────────── */
.lp-field-error {
  font-size: 12px;
  color: var(--lp-danger);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Password strength meter (auth pages) ─────────────────────── */
.lp-strength-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.lp-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--lp-border);
  border-radius: 100px;
  overflow: hidden;
}
.lp-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width .25s ease, background-color .25s ease;
}
.lp-strength-fill--weak   { background: #DC2626; width: 25%; }
.lp-strength-fill--fair   { background: #F59E0B; width: 50%; }
.lp-strength-fill--good   { background: #2563EB; width: 75%; }
.lp-strength-fill--strong { background: #16A34A; width: 100%; }
.lp-strength-label {
  font-size: 12px;
  font-weight: 600;
  min-width: 44px;
  text-align: right;
}
.lp-strength-label--weak   { color: #DC2626; }
.lp-strength-label--fair   { color: #D97706; }
.lp-strength-label--good   { color: #2563EB; }
.lp-strength-label--strong { color: #16A34A; }
