:root {
  --brand-900: #0a2540;
  --brand-700: #0b4f86;
  --brand-600: #0073b1;
  --brand-500: #0a86c8;
  --accent: #f9a23c;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --field: #f8fafc;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-line: #bbf7d0;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --radius: 12px;
}

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

html, body { height: 100%; margin: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

svg { display: block; flex-shrink: 0; }

.lp { display: flex; min-height: 100vh; }

/* ---------- Brand panel ---------- */
.lp-brand {
  position: relative;
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand-600) 100%);
}
.lp-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.lp-brand::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -180px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.lp-brand > * { position: relative; z-index: 1; }

.lp-logo-row { display: flex; align-items: center; gap: 14px; }
.lp-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  object-fit: contain;
}
.lp-logo-row strong { font-size: 18px; font-weight: 700; line-height: 1.3; }

.lp-hero { max-width: 560px; }
.lp-hero h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lp-hero h1 span { color: var(--accent); }
.lp-hero p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
}

.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.lp-chips svg { width: 15px; height: 15px; color: var(--accent); }

.lp-brand-foot { font-size: 13px; color: rgba(255,255,255,.55); }
.lp-brand-foot a { color: rgba(255,255,255,.8); }

/* ---------- Form panel ---------- */
.lp-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.lp-card { width: 100%; max-width: 400px; }

.lp-card-brand { display: none; text-align: center; margin-bottom: 24px; }
.lp-card-brand img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; }
.lp-card-brand strong { display: block; font-size: 17px; font-weight: 700; color: var(--brand-900); }

.lp-head h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.lp-head p { margin: 0 0 28px; font-size: 15px; color: var(--ink-soft); }

/* Alert */
.lp-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  border: 1px solid;
}
.lp-alert.show { display: flex; }
.lp-alert svg { width: 18px; height: 18px; margin-top: 1px; }
.lp-alert.is-error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.lp-alert.is-success { color: var(--success); background: var(--success-bg); border-color: var(--success-line); }
.lp-alert.is-warning { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.lp-alert .ico-success, .lp-alert .ico-error { display: none; }
.lp-alert.is-success .ico-success,
.lp-alert.is-error .ico-error,
.lp-alert.is-warning .ico-error { display: block; }

/* Fields */
.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }

.lp-input {
  display: flex;
  align-items: center;
  height: 50px;
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lp-input:focus-within {
  background: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(0, 115, 177, .12);
}
.lp-input > svg { width: 18px; height: 18px; margin: 0 12px 0 16px; color: var(--muted); }
.lp-input:focus-within > svg { color: var(--brand-600); }
.lp-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.lp-input input::placeholder { color: var(--muted); }
.lp-input input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--field) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}
.lp-input:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }

.lp-field.has-error .lp-input { border-color: var(--danger); background: #fff; }
.lp-field.has-error .lp-input:focus-within { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.lp-error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); }
.lp-field.has-error .lp-error { display: block; }

.lp-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.lp-eye:hover { color: var(--ink-soft); }
.lp-eye svg { width: 19px; height: 19px; }
.lp-eye .ico-hide { display: none; }
.lp-eye.is-visible .ico-show { display: none; }
.lp-eye.is-visible .ico-hide { display: block; }

.lp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 14px;
}
.lp-check { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.lp-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand-600); cursor: pointer; }
.lp-row a { font-weight: 600; }

/* Button */
.lp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  box-shadow: 0 8px 22px rgba(0, 115, 177, .28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.lp-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 115, 177, .32); }
.lp-btn:active { transform: translateY(0); }
.lp-btn:focus-visible { outline: 3px solid rgba(0, 115, 177, .35); outline-offset: 2px; }
.lp-btn:disabled { cursor: not-allowed; filter: saturate(.7); transform: none; opacity: .85; }
.lp-btn svg { width: 18px; height: 18px; }
.lp-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin .7s linear infinite;
}
.lp-btn.is-loading .lp-spinner { display: block; }
.lp-btn.is-loading .lp-btn-ico { display: none; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.lp-help svg { width: 15px; height: 15px; color: var(--muted); }

.lp-copy {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.lp-copy p { margin: 0; }
.lp-copy-credits { display: none; margin-top: 4px !important; }
.lp-copy-credits a { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .lp-brand { flex-basis: 50%; padding: 40px; }
  .lp-hero h1 { font-size: 36px; }
}

@media (max-width: 991px) {
  body { background: linear-gradient(180deg, #eaf3fa 0%, #f7fafc 100%); }
  .lp-brand { display: none; }
  .lp-main { padding: 32px 16px; }
  .lp-card {
    max-width: 420px;
    padding: 32px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
  }
  .lp-card-brand { display: block; }
  .lp-head { text-align: center; }
  .lp-head h2 { font-size: 24px; }
  .lp-copy { margin-top: 28px; }
  .lp-copy-credits { display: block; }
}

@media (max-width: 380px) {
  .lp-card { padding: 26px 20px; }
  .lp-row { flex-direction: column; align-items: flex-start; }
}
