:root {
  --cream:  #f7f4ef;
  --border: #e5e0d8;
  --radius: 8px;
}

body { overflow: hidden; }

/* ── BRAND PANEL ─────────────────────────────────────── */
.lp {
  flex: 0 0 44%;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 52px 56px;
}

.lp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.lp-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.lp-ring-1 { width: 500px; height: 500px; bottom: -170px; right: -130px; border: 1.5px solid rgba(232,160,0,0.1); }
.lp-ring-2 { width: 340px; height: 340px; bottom: -80px;  right: -100px; border: 1px solid rgba(232,160,0,0.07); }

.lp-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--amber) 25%, var(--amber) 75%, transparent 100%);
  opacity: 0.5;
}

.lp-top {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.08s;
}

.lp-mark {
  width: 34px; height: 34px;
  background: var(--amber);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.lp-brand {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 32px 0;
}

.lp-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.18s;
}

.lp-title {
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 800;
  line-height: 0.9;
  color: #ffffff;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.26s;
}

.lp-title-accent { display: block; color: var(--amber); }

.lp-rule {
  width: 36px; height: 2px;
  background: var(--amber);
  margin: 24px 0 20px;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards 0.4s;
}

.lp-sub {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.05em;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.46s;
}

.lp-bars {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  animation: fadeIn 0.7s ease forwards 0.6s;
}

.lp-bar { width: 3px; background: var(--amber); border-radius: 2px; }
.lp-bar:nth-child(1) { height: 68px; opacity: 0.55; }
.lp-bar:nth-child(2) { height: 32px; opacity: 0.22; }
.lp-bar:nth-child(3) { height: 96px; opacity: 0.48; }
.lp-bar:nth-child(4) { height: 18px; opacity: 0.14; }
.lp-bar:nth-child(5) { height: 48px; opacity: 0.38; }

.lp-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.14);
  letter-spacing: 0.07em;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.65s;
}

/* ── FORM PANEL ──────────────────────────────────────── */
.rp {
  flex: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 48px;
  position: relative;
}

.rp-wrap {
  width: 100%;
  max-width: 356px;
  opacity: 0;
  animation: fadeUp 0.65s ease forwards 0.3s;
}

.form-heading    { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 4px; line-height: 1; }
.form-subheading { font-size: 13.5px; color: var(--text-3); margin-bottom: 36px; }

.field { margin-bottom: 17px; }

.field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}

.field-wrap { position: relative; }

.field-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
  transition: color var(--t);
}

.field-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}

.field-input::placeholder { color: #bdb8b0; }

.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,42,0.07);
}

.field-wrap:focus-within .field-icon { color: var(--navy); }

.field-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; padding-left: 1px; }

.form-error {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid rgba(220,38,38,0.18);
  border-left: 3px solid var(--danger);
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 13px;
  color: #991b1b;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-error.show { display: flex; animation: shake 0.36s ease; }

.btn-login {
  width: 100%;
  height: 48px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: background var(--t), transform 0.12s ease, box-shadow var(--t);
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.btn-login:hover    { background: var(--navy-2); box-shadow: 0 4px 18px rgba(13,27,42,0.22); transform: translateY(-1px); }
.btn-login:active   { transform: translateY(0); box-shadow: none; }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin: 0 auto;
}

.btn-login.loading .btn-text    { display: none; }
.btn-login.loading .btn-spinner { display: block; }

@keyframes fadeUp  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-5px); }
  40%     { transform: translateX(5px); }
  60%     { transform: translateX(-3px); }
  80%     { transform: translateX(3px); }
}

@media (max-width: 840px) {
  body { flex-direction: column; overflow: auto; }
  .lp { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 16px; padding: 22px 28px; }
  .lp-ring, .lp-bars, .lp-accent-bar { display: none; }
  .lp-body { flex: 1; padding: 0; }
  .lp-eyebrow, .lp-rule, .lp-sub, .lp-footer { display: none; }
  .lp-title { font-size: 28px; }
  .lp-title-accent { display: inline; }
  .rp { padding: 40px 28px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .lp { padding: 18px 22px; }
  .rp { padding: 32px 22px; }
}
