:root {
  --lp-bg: #f6f5fb;
  --lp-surface: #ffffff;
  --lp-ink: #1d1b2b;
  --lp-muted: #6b6880;
  --lp-accent: #6d4aff;
  --lp-border: #e6e3f2;
  --lp-danger: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Vazirmatn, system-ui, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-ink);
}

.lp-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lp-card {
  width: min(420px, 100%);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(29, 27, 43, .08);
  text-align: center;
}

.lp-card h1 { margin: 0 0 6px; font-size: 22px; }
.lp-sub { margin: 0 0 22px; color: var(--lp-muted); font-size: 14px; }

.lp-login form { display: grid; gap: 6px; text-align: start; }
.lp-login label { font-size: 13px; color: var(--lp-muted); margin-top: 8px; }

.lp-login input {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--lp-border);
  border-radius: 11px;
  background: #fbfaff;
}

.lp-login input:focus { outline: 2px solid var(--lp-accent); outline-offset: 1px; }

.lp-pass { position: relative; display: grid; }
.lp-pass input { padding-inline-end: 44px; }

.lp-eye {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--lp-muted);
  cursor: pointer;
}

.lp-eye:hover { color: var(--lp-accent); background: #f3f0ff; }
.lp-eye:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 1px; }
.lp-eye svg { width: 20px; height: 20px; }
.lp-eye .eye-off { display: none; }
.lp-eye[aria-pressed="true"] .eye-on { display: none; }
.lp-eye[aria-pressed="true"] .eye-off { display: block; }

.lp-primary {
  margin-top: 18px;
  font: inherit;
  font-weight: 600;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  background: var(--lp-accent);
  color: #fff;
  cursor: pointer;
}

.lp-primary:disabled { opacity: .6; cursor: progress; }

.lp-error { margin: 14px 0 0; color: var(--lp-danger); font-size: 13px; }

.lp-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 13px;
}

.lp-links a { color: var(--lp-muted); text-decoration: none; }
.lp-links a:hover { color: var(--lp-accent); }

.lp-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid var(--lp-border);
  border-top-color: var(--lp-accent);
  border-radius: 50%;
  animation: lp-spin .9s linear infinite;
}

@keyframes lp-spin { to { transform: rotate(360deg); } }
