.reign-auth {
  --ra-yellow: var(--color-yellow, #fadb0a);
  --ra-green: var(--color-green, #52ac62);
  --ra-muted: #b5b5b5;
  --ra-border: #303030;
  --ra-error: #ffa59c;
  width: min(500px, 100%);
  margin: clamp(18px, 4vh, 44px) auto;
  padding: clamp(16px, 4vw, 29px);
  background: #121212;
  color: #f5f5f4;
  color-scheme: dark;
  border: 1px solid var(--ra-border);
  border-radius: 12px;
}
.reign-auth [hidden] { display: none !important; }
.reign-auth a { color: var(--ra-yellow); text-underline-offset: 3px; }
.reign-auth :focus-visible { outline: 2px solid var(--ra-yellow); outline-offset: 3px; }
.reign-auth .ra-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--ra-border); background: #0e0e0e; border-radius: 9px; }
.ra-switch a { display: grid; place-items: center; min-height: 42px; padding: 4px 8px; border-radius: 6px; color: var(--ra-muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.ra-switch a:hover { color: #fff; }
.reign-auth .ra-switch [aria-current='page'] { color: var(--ra-yellow); background: #232011; box-shadow: inset 0 0 0 1px #494019; }
.reign-auth .ra-intro { margin: 19px 0 16px; }
.reign-auth h1 { font-size: clamp(27px, 5vw, 36px); line-height: 1.1; letter-spacing: -.04em; margin: 0; color: inherit; }
.reign-auth .ra-intro p { color: var(--ra-muted); font-size: 14px; line-height: 1.45; margin: 6px 0 0; }
.ra-form { display: grid; gap: 11px; }
.ra-field { min-width: 0; }
.ra-field > label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.reign-auth .ra-field input { display: block; min-width: 0; width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #414141; border-radius: 8px; color: #f5f5f4; background: #0c0c0c; font-size: 16px; }
.ra-field input:hover { border-color: #696969; }
.ra-field input:focus { border-color: var(--ra-yellow); outline: 1px solid var(--ra-yellow); outline-offset: 0; }
.reign-auth .ra-field input[aria-invalid='true'] { border-color: var(--ra-error); }
.reign-auth .ra-note, .reign-auth .ra-error { margin: 5px 0 0; color: var(--ra-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.reign-auth .ra-error, .reign-auth .ra-note[data-error='true'] { color: var(--ra-error); }
.ra-rules { padding: 9px 10px 10px; background: #161616; border: 1px solid var(--ra-border); border-radius: 8px; }
.reign-auth .ra-rules h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: inherit; }
.ra-rules ul { display: grid; gap: 3px; list-style: none; padding: 0; margin: 0; color: var(--ra-muted); font-size: 12px; line-height: 1.4; }
.ra-rules li { display: grid; grid-template-columns: 11px minmax(0,1fr); gap: 5px; align-items: baseline; }
.ra-rules code { color: #eee; white-space: nowrap; font-size: inherit; }
.ra-rule-icon { text-align: center; }
.ra-rule-icon::before { content: '·'; font-weight: 800; }
[data-state='pass'] .ra-rule-icon { color: var(--ra-green); }
[data-state='pass'] .ra-rule-icon::before { content: '✓'; }
[data-state='fail'] .ra-rule-icon { color: var(--ra-error); }
[data-state='fail'] .ra-rule-icon::before { content: '×'; }
.ra-password { position: relative; }
.reign-auth .ra-password input { padding-inline-end: 48px; }
.ra-eye { position: absolute; inset: 0 1px 0 auto; width: 44px; padding: 0; display: grid; place-items: center; color: var(--ra-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.ra-eye svg { width: 20px; height: 20px; }
.reign-auth .ra-eye:focus-visible { outline-offset: -3px; }
.ra-eye:hover, .ra-eye[aria-pressed='true'] { color: var(--ra-yellow); }
.ra-eye-slash { visibility: hidden; }
.ra-eye[aria-pressed='true'] .ra-eye-slash { visibility: visible; }
.ra-check { display: flex; align-items: flex-start; gap: 8px; min-height: 25px; line-height: 1.45; font-size: 14px; }
.ra-check label, label.ra-check { cursor: pointer; }
.reign-auth input[type='checkbox'] { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ra-yellow); cursor: pointer; }
.ra-referral { border-block: 1px solid #2b2b2b; padding-block: 8px; }
.ra-referral .ra-field { margin: 8px 0 4px; }
.ra-login-options { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.ra-captcha { min-width: 0; overflow-x: auto; }
.ra-captcha:empty { display: none; }
.ra-primary { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 8px 13px; color: #171400; background: var(--ra-yellow); font-weight: 750; text-align: left; line-height: 1.2; cursor: pointer; }
.ra-primary span { flex: none; font-size: 19px; line-height: 1; }
.ra-primary:hover { background: #ffe447; }
.ra-primary:active { background: #eed000; }
