﻿/* ── Login Page ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0a0b0e;
  --surface:       #181a20;
  --surface-2:     #1d1f26;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.10);
  --text:          #ecedee;
  --text-muted:    #8b8d96;
  --text-dim:      #7a7d87;
  --accent:        #FFC72C;
  --accent-dark:   #D89A14;
  --accent-ring:   rgba(255,199,44,0.28);
  --tm-red:        #8a2a2b;
  --error:         #f87171;
  --success:       #4ade80;
  --radius:        14px;
  --radius-sm:     6px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── Shell ──────────────────────────────────────────────────────────────────── */
.lp-shell {
  display: flex;
  min-height: 100dvh;
}

/* ── Left hero panel ────────────────────────────────────────────────────────── */
.lp-hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px;
  overflow: hidden;
  /* Pure-CSS hero: inline blueprint grid over a faint accent glow over the
     obsidian gradient — no image request, offline-safe, brand-neutral. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.045'%3E%3Cpath d='M0 20H80M0 40H80M0 60H80M20 0V80M40 0V80M60 0V80'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.5'%3E%3Cpath d='M0 .75H80M.75 0V80'/%3E%3C/g%3E%3C/svg%3E") top left / 80px 80px repeat,
    radial-gradient(900px 600px at 15% -5%, rgba(255,199,44,0.14), transparent 60%),
    linear-gradient(165deg, #12141a 0%, #0c0d11 55%, #08090c 100%);
}

/* Dark gradient overlay — image visible at top, solid enough for text at bottom */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.00) 60%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}

/* Remove old bloom — image has its own dramatic lighting */
.lp-hero::after { display: none; }

.lp-hero-content {
  position: relative;
  z-index: 1;
}

.lp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,199,44,0.18);
  border: 1px solid rgba(255,199,44,0.45);
  border-radius: 999px;
  padding: 5px 12px;
  margin-top: 14px;
  margin-bottom: 0;
  backdrop-filter: blur(4px);
}
.lp-hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.lp-hero-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 16px;
}
.lp-hero-title span { color: var(--accent); }

.lp-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.lp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ── Right auth panel ───────────────────────────────────────────────────────── */
.lp-auth {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  position: relative;
}

/* Subtle top accent line */
.lp-auth::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

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

.lp-card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.lp-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Tab switcher ───────────────────────────────────────────────────────────── */
.lp-tabs {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 24px;
  gap: 3px;
}

.lp-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font);
}

.lp-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.lp-tab:hover:not(.active) {
  color: var(--text);
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.lp-form { display: flex; flex-direction: column; gap: 14px; }
.lp-form.hidden { display: none; }

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.lp-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.lp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,199,44,0.15);
}

/* Code field accent */
.lp-input--code {
  border-color: rgba(255,199,44,0.3);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.lp-input--code:focus { border-color: var(--accent); }

.lp-code-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Submit button ──────────────────────────────────────────────────────────── */
.lp-btn {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  background: var(--accent);
  color: #0a0b0e;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.lp-btn:hover  { opacity: 0.88; }
.lp-btn:active { transform: scale(0.98); }
.lp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Link-styled button (Forgot password, Back to sign in) ──────────────── */
.lp-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: none;
  align-self: center;
  transition: color 0.15s;
}
.lp-link-btn:hover { color: var(--text); text-decoration: underline; }

/* ── Status messages ────────────────────────────────────────────────────────── */
.lp-error, .lp-success {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  padding: 0 2px;
  display: none;
}
.lp-error   { color: var(--error);   }
.lp-success { color: var(--success); }
.lp-error.show, .lp-success.show { display: block; }

/* Divider */
.lp-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0;
  position: relative;
}

/* Mobile branding strip — oculto no desktop */
.lp-mobile-brand { display: none; }

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .lp-shell { flex-direction: column; }

  .lp-hero {
    flex: none;
    min-height: 220px;
    padding: 0;
    justify-content: flex-end;
    background-position: center 20%;
  }

  .lp-hero-content { display: none; }

  .lp-hero-tagline { font-size: 12px; margin-bottom: 16px; }
  .lp-hero-pills { display: none; }

  .lp-mobile-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
  }

  .lp-auth {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 32px 20px 40px;
    align-items: flex-start;
  }

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