:root {
  --psl-green: #0f6b4f;
  --psl-green-dark: #084b38;
  --psl-mint: #e7f5ef;
  --psl-ink: #14231e;
  --psl-muted: #64736d;
  --psl-line: rgba(15, 107, 79, .16);
  --psl-danger: #b42318;
}

.psl-shell,
.psl-shell * { box-sizing: border-box; }

.psl-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  color: var(--psl-ink);
  font-family: inherit;
}

.psl-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,249,245,.86));
  box-shadow: 0 24px 70px rgba(8,75,56,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.psl-card::before {
  content: '';
  position: absolute;
  inset: -90px auto auto -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,174,129,.22), transparent 68%);
  pointer-events: none;
}

.psl-brand {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--psl-green), var(--psl-green-dark));
  box-shadow: 0 10px 22px rgba(15,107,79,.24);
  font-size: 25px;
  font-weight: 800;
}

.psl-eyebrow {
  margin: 0 0 8px;
  color: var(--psl-green);
  font-size: 13px;
  font-weight: 750;
}

.psl-card h2 { margin: 0 0 10px; font-size: clamp(24px, 5vw, 32px); line-height: 1.35; }
.psl-intro { margin: 0 0 28px; color: var(--psl-muted); font-size: 15px; line-height: 1.9; }
.psl-field { margin-bottom: 18px; }
.psl-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }

.psl-input-wrap { position: relative; }
.psl-prefix {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  padding-right: 12px;
  border-right: 1px solid var(--psl-line);
  color: var(--psl-muted);
  direction: ltr;
  font: 600 14px/1 system-ui, sans-serif;
}

.psl-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--psl-line);
  border-radius: 15px;
  outline: none;
  color: var(--psl-ink);
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 2px rgba(8,75,56,.03);
  font: 600 16px/1.2 system-ui, sans-serif;
  text-align: right;
  direction: ltr;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.psl-input-wrap input { padding-left: 75px; }
.psl-field input:focus { border-color: var(--psl-green); background: #fff; box-shadow: 0 0 0 4px rgba(15,107,79,.10); }
#psl-code { text-align: center; letter-spacing: .55em; font-size: 22px; }

.psl-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 15px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--psl-green), var(--psl-green-dark));
  box-shadow: 0 12px 25px rgba(15,107,79,.22);
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.psl-button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(15,107,79,.28); }
.psl-button:disabled { opacity: .55; cursor: wait; transform: none; }
.psl-notice { min-height: 24px; margin: 0 0 10px; font-size: 13px; line-height: 1.8; }
.psl-notice--error { color: var(--psl-danger); }
.psl-notice--success { color: var(--psl-green); }
.psl-code-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psl-edit-phone { padding: 0; border: 0; color: var(--psl-green); background: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.4; }
.psl-countdown { min-height: 22px; margin: 8px 0 0; color: var(--psl-muted); font-size: 12px; }
.psl-security-note { display: flex; gap: 7px; align-items: center; margin: 18px 0 0; color: var(--psl-muted); font-size: 12px; line-height: 1.7; }
.psl-security-note span { color: var(--psl-green); font-weight: 800; }
.psl-hidden, .psl-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.psl-card--authenticated { max-width: 520px; margin: 20px auto; }
.psl-actions { display: grid; gap: 14px; margin-top: 24px; }
.psl-link { color: var(--psl-green); text-align: center; text-decoration: none; font-weight: 700; }

.psl-account-session,
.psl-account-session * { box-sizing: border-box; }

.psl-account-session {
  display: flex;
  width: 100%;
  margin-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(180, 35, 24, .14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,245,.92));
  box-shadow: 0 12px 34px rgba(82, 21, 17, .06);
}

.psl-account-session > div { display: grid; gap: 4px; }
.psl-account-session strong { color: var(--psl-ink); font-size: 15px; line-height: 1.7; }
.psl-account-session span { color: var(--psl-muted); font-size: 13px; line-height: 1.7; }

.psl-account-logout {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(180, 35, 24, .22);
  border-radius: 13px;
  color: var(--psl-danger) !important;
  background: #fff;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.psl-account-logout:hover { border-color: rgba(180, 35, 24, .44); background: #fff8f7; transform: translateY(-1px); }
.psl-account-logout span { color: inherit; font-size: 16px; line-height: 1; }

@media (max-width: 520px) {
	.psl-shell { padding: 12px; }
	.psl-card { border-radius: 22px; }
	.psl-account-session { align-items: stretch; flex-direction: column; padding: 18px; }
	.psl-account-logout { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .psl-shell * { scroll-behavior: auto !important; transition: none !important; }
}
