.lpb-root {
  --lpb-ink: #0f172a;
  --lpb-muted: #64748b;
  --lpb-line: rgba(15, 23, 42, 0.08);
  --lpb-surface: #ffffff;
  --lpb-input: #f4f6fb;
  --lpb-indigo: #4f46e5;
  --lpb-violet: #7c3aed;
  --lpb-cyan: #06b6d4;
  --lpb-danger: #e11d48;
  --lpb-shadow: 0 0px 5px rgba(79, 70, 229, 0.14), 0 0px 5px rgba(15, 23, 42, 0.06);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  color: var(--lpb-ink);
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.lpb-root *,
.lpb-root *::before,
.lpb-root *::after {
  box-sizing: border-box;
}

.lpb-card {
  position: relative;
  overflow: hidden;
  background: var(--lpb-surface);
  border: 1px solid var(--lpb-line);
  border-radius: 24px;
  box-shadow: var(--lpb-shadow);
}

.lpb-card--login {
  padding: 28px 26px 22px;
}

.lpb-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background:
    radial-gradient(circle at 20% 40%, rgba(79, 70, 229, 0.28), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.22), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.2), transparent 50%);
  pointer-events: none;
}

.lpb-brand {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
}

.lpb-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--lpb-indigo), var(--lpb-violet) 55%, var(--lpb-cyan));
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

.lpb-title {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lpb-sub {
  margin: 0;
  color: var(--lpb-muted);
  font-size: 1.2rem;
}

.lpb-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 1.1rem;
  border: 1px solid #fecdd3;
}

.lpb-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.lpb-field {
  display: grid;
  gap: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #334155;
}

.lpb-field input[type="text"],
.lpb-field input[type="password"],
.lpb-pass-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--lpb-input);
  color: var(--lpb-ink);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lpb-field input:focus {
  background: #fff;
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.lpb-pass-wrap {
  position: relative;
  display: block;
}

.lpb-pass-wrap input {
  padding-inline-end: 44px;
}

.lpb-eye {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lpb-muted);
  cursor: pointer;
  border-radius: 8px;
}

.lpb-eye:hover {
  color: var(--lpb-ink);
  background: rgba(15, 23, 42, 0.05);
}

.lpb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.2rem;
}

.lpb-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.lpb-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lpb-indigo);
}

.lpb-link {
  color: var(--lpb-indigo);
  text-decoration: none;
  font-weight: 600;
}

.lpb-link:hover {
  text-decoration: underline;
}

.lpb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--lpb-indigo) 0%, var(--lpb-violet) 100%);
  box-shadow: 0 4px 5px rgba(79, 70, 229, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.lpb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 10px rgba(79, 70, 229, 0.34);
}

.lpb-btn:active {
  transform: translateY(0);
}

.lpb-btn.is-loading {
  pointer-events: none;
  opacity: 0.86;
}

.lpb-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lpb-spin 0.7s linear infinite;
}

.lpb-footer {
  position: relative;
  margin: 16px 0 0;
  text-align: center;
  color: var(--lpb-muted);
  font-size: 0.86rem;
}

.lpb-card--profile {
  padding-bottom: 20px;
}

.lpb-cover {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 52%, #0891b2 100%);
}

.lpb-cover-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
}

.lpb-cover-orb--a {
  width: 140px;
  height: 140px;
  top: -40px;
  inset-inline-start: -30px;
  background: #67e8f9;
}

.lpb-cover-orb--b {
  width: 110px;
  height: 110px;
  bottom: -30px;
  inset-inline-end: -10px;
  background: #f0abfc;
}

.lpb-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin: -46px auto 0;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #e0e7ff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.lpb-avatar-img,
.lpb-avatar img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.lpb-identity {
  text-align: center;
  padding: 12px 22px 4px;
}

.lpb-hello {
  margin: 0;
  color: var(--lpb-muted);
  font-size: 1.2rem;
}

.lpb-name {
  margin: 2px 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lpb-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 1.1rem;
  font-weight: 700;
}

.lpb-email {
  margin: 10px 0 0;
  color: var(--lpb-muted);
  font-size: 1.1rem;
  word-break: break-all;
}

.lpb-actions {
  display: grid;
  gap: 8px;
  padding: 16px 18px 0;
}

.lpb-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--lpb-ink);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid var(--lpb-line);
  transition: background 0.15s, transform 0.15s;
}

.lpb-chip:hover {
  background: #eef2ff;
  transform: translateX(-2px);
}

.lpb-root[dir="ltr"] .lpb-chip:hover {
  transform: translateX(2px);
}

.lpb-chip--danger {
  color: var(--lpb-danger);
}

.lpb-chip--danger:hover {
  background: #fff1f2;
}

.lpb-root.is-swapping .lpb-card {
  animation: lpb-in 0.38s ease;
}

.lpb-root.is-error .lpb-card--login {
  animation: lpb-shake 0.38s ease;
}

@keyframes lpb-spin {
  to { transform: rotate(360deg); }
}

@keyframes lpb-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes lpb-shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .lpb-btn,
  .lpb-chip,
  .lpb-root.is-swapping .lpb-card,
  .lpb-root.is-error .lpb-card--login,
  .lpb-spinner {
    animation: none;
    transition: none;
  }
}
