html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
body {
  background:
    radial-gradient(circle at 18% 18%, rgba(190, 127, 52, .07), transparent 34%),
    radial-gradient(circle at 85% 16%, rgba(87, 132, 198, .07), transparent 30%),
    linear-gradient(145deg, #0c1119 0%, #0a1018 56%, #080d14 100%);
}

.pr-auth-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(560px, .96fr);
  overflow: hidden;
}

.pr-auth-brand { position: relative; min-width: 0; overflow: hidden; }
.pr-auth-art { position: absolute; inset: 0; pointer-events: none; opacity: .98; }
.pr-auth-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pr-brand-content {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  min-height: 100dvh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  padding: clamp(38px, 5vh, 64px) clamp(34px, 5vw, 78px) clamp(28px, 4vh, 48px);
}

.pr-brand-lockup { display: flex; align-items: center; gap: 18px; justify-self: start; }
.pr-brand-mark { width: 88px; height: 104px; filter: drop-shadow(0 0 12px rgba(211,161,94,.14)); }
.pr-brand-wordmark { display: grid; justify-items: center; min-width: 320px; }
.pr-brand-wordmark > strong { font-family: var(--pr-font-display); font-size: clamp(54px, 4.3vw, 78px); line-height: .88; letter-spacing: .045em; font-weight: 500; }
.pr-brand-lab { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 12px; color: var(--pr-accent-primary); font-size: clamp(20px, 1.8vw, 30px); letter-spacing: .42em; padding-left: .42em; }
.pr-brand-lab i { height: 1px; background: linear-gradient(90deg, transparent, rgba(211,161,94,.66)); }
.pr-brand-lab i:last-child { background: linear-gradient(90deg, rgba(211,161,94,.66), transparent); }
.pr-brand-wordmark small { margin-top: 8px; color: var(--pr-accent-primary); font-size: 18px; letter-spacing: .03em; }

.pr-brand-message { align-self: center; margin-top: 4vh; }
.pr-brand-message h1 { margin: 0; font-size: clamp(34px, 2.85vw, 52px); line-height: 1.16; letter-spacing: -.025em; font-weight: 500; }
.pr-brand-accent { display: block; width: 52px; height: 3px; margin: 22px 0 20px; border-radius: 99px; background: linear-gradient(90deg, var(--pr-accent-primary), rgba(211,161,94,.25)); }
.pr-brand-message p { margin: 0; color: var(--pr-text-secondary); font-size: clamp(16px, 1.15vw, 20px); line-height: 1.55; }

.pr-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-self: end; }
.pr-trust-card { min-height: 170px; display: grid; align-content: start; justify-items: center; gap: 10px; padding: 22px 14px; text-align: center; border: 1px solid var(--pr-border-subtle); border-radius: var(--pr-radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.pr-trust-card .pr-icon { color: var(--pr-accent-primary); }
.pr-trust-card strong { font-size: 14px; }
.pr-trust-card span { color: var(--pr-text-muted); font-size: 12px; line-height: 1.55; }

.pr-brand-security-note { display: flex; align-items: center; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--pr-border-subtle); color: var(--pr-text-secondary); }
.pr-brand-security-note .pr-icon { color: var(--pr-accent-primary); width: 24px; height: 24px; }
.pr-brand-security-note span { display: grid; gap: 3px; }
.pr-brand-security-note strong { font-size: 13px; font-weight: 500; }
.pr-brand-security-note small { color: var(--pr-text-muted); font-size: 12px; }

.pr-auth-access {
  min-width: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.4vh, 42px) clamp(22px, 3vw, 58px);
  background: linear-gradient(90deg, rgba(7,12,18,.06), rgba(4,8,13,.24));
}

.pr-auth-panel {
  width: min(100%, 630px);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.2vh, 34px) clamp(24px, 2.5vw, 40px);
  border: 1px solid rgba(184, 204, 228, .20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 100, 135, .14), transparent 34%),
    linear-gradient(160deg, rgba(24, 35, 48, .92), rgba(12, 19, 28, .88));
  box-shadow: 0 28px 76px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px) saturate(115%);
  overflow: hidden;
}
.pr-auth-panel__header { display: grid; justify-items: center; text-align: center; }
.pr-security-emblem { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid rgba(211,161,94,.40); border-radius: 50%; color: var(--pr-accent-primary); background: radial-gradient(circle, rgba(211,161,94,.12), rgba(211,161,94,.025)); box-shadow: 0 0 24px rgba(211,161,94,.12); }
.pr-auth-panel__header h2 { margin: 0; font-size: clamp(23px, 2vw, 30px); font-weight: 500; letter-spacing: -.015em; }
.pr-auth-panel__header p { margin: 7px 0 0; color: var(--pr-text-secondary); font-size: 14px; }
.pr-auth-panel__fields { display: grid; gap: 12px; }
.pr-auth-support-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pr-auth-primary-action { display: flex; justify-content: flex-end; }
.pr-auth-primary-action .pr-button { min-width: 142px; }
.pr-alt-auth { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 10px; }
.pr-alt-auth__button { min-width: 0; padding-inline: 10px; white-space: nowrap; }
.pr-security-summary { min-height: 54px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--pr-border-subtle); border-radius: var(--pr-radius-lg); background: rgba(255,255,255,.014); }
.pr-security-summary__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--pr-accent-soft); color: var(--pr-accent-primary); }
.pr-security-summary span:last-child { display: grid; gap: 3px; }
.pr-security-summary strong { font-size: 12.5px; font-weight: 600; }
.pr-security-summary small { color: var(--pr-text-muted); font-size: 11px; }
.icon-eye-off { display: none; }
#toggle-password[aria-pressed="true"] .icon-eye { display: none; }
#toggle-password[aria-pressed="true"] .icon-eye-off { display: block; }

@media (max-width: 1540px), (max-height: 820px) {
  .pr-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(520px, .94fr); }
  .pr-brand-content { padding-block: 26px; }
  .pr-brand-lockup { gap: 14px; }
  .pr-brand-mark { width: 70px; height: 84px; }
  .pr-brand-wordmark { min-width: 270px; }
  .pr-brand-wordmark > strong { font-size: 56px; }
  .pr-brand-lab { font-size: 22px; margin-top: 9px; }
  .pr-brand-wordmark small { font-size: 15px; }
  .pr-brand-message { margin-top: 1.5vh; }
  .pr-brand-message h1 { font-size: 38px; }
  .pr-brand-message p { font-size: 16px; }
  .pr-trust-card { min-height: 126px; padding: 15px 10px; gap: 7px; }
  .pr-trust-card span { display: none; }
  .pr-brand-security-note { padding-top: 14px; margin-top: 14px; }
  .pr-auth-panel { gap: 11px; padding: 19px 28px; max-height: calc(100dvh - 24px); }
  .pr-security-emblem { width: 44px; height: 44px; margin-bottom: 6px; }
  .pr-auth-panel__header h2 { font-size: 24px; }
  .pr-auth-panel__header p { margin-top: 4px; font-size: 13px; }
  .pr-auth-panel__fields { gap: 8px; }
  .pr-input { min-height: 40px; }
  .pr-radio-option { min-height: 42px; padding-block: 6px; }
  .pr-security-summary { min-height: 46px; padding-block: 8px; }
}

@media (max-width: 1180px) {
  .pr-auth-shell { grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); }
  .pr-brand-wordmark { min-width: 220px; }
  .pr-brand-wordmark > strong { font-size: 46px; }
  .pr-brand-message h1 { font-size: 32px; }
  .pr-trust-grid { grid-template-columns: 1fr; gap: 8px; }
  .pr-trust-card { min-height: 48px; display: flex; justify-content: flex-start; align-items: center; text-align: left; padding: 10px 12px; }
  .pr-trust-card:nth-child(n+3) { display: none; }
}

@media (max-width: 920px) {
  body { overflow-y: auto; }
  .pr-auth-shell { display: block; overflow: visible; }
  .pr-auth-brand { min-height: 380px; }
  .pr-brand-content { min-height: 380px; padding: 34px 28px; grid-template-rows: auto 1fr; }
  .pr-brand-lockup { justify-self: center; }
  .pr-brand-message { text-align: center; margin-top: 34px; }
  .pr-brand-accent { margin-inline: auto; }
  .pr-trust-grid, .pr-brand-security-note { display: none; }
  .pr-auth-access { min-height: auto; padding: 24px 18px 36px; }
  .pr-auth-panel { max-height: none; width: min(100%, 620px); }
}

@media (max-width: 560px) {
  .pr-brand-mark { width: 56px; height: 68px; }
  .pr-brand-wordmark { min-width: 190px; }
  .pr-brand-wordmark > strong { font-size: 38px; }
  .pr-brand-lab { font-size: 18px; }
  .pr-brand-message h1 { font-size: 29px; }
  .pr-wide-only { display: none; }
  .pr-auth-panel { padding-inline: 18px; border-radius: 18px; }
  .pr-radio-group__options { grid-template-columns: 1fr; }
  .pr-alt-auth { grid-template-columns: 1fr; }
  .pr-auth-support-row { align-items: flex-start; }
}
