:root {
  --auth-ink: #151923;
  --auth-muted: #687184;
  --auth-line: #dfe3ea;
  --auth-accent: #147d72;
}

body.br-auth-page { min-height: 100vh; background: #f5f6f8; color: var(--auth-ink); }
.br-auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); }
.br-auth-brand { display: flex; min-height: 100vh; flex-direction: column; padding: 34px clamp(28px, 5vw, 72px); background: #0c111d; color: #fff; }
.br-auth-logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.br-auth-logo:hover { color: #fff; text-decoration: none; }
.br-auth-logo strong, .br-auth-logo small { display: block; }
.br-auth-logo strong { font-size: 16px; }
.br-auth-logo small { margin-top: 2px; color: #8e99ad; font-size: 11px; }
.br-auth-positioning { max-width: 430px; margin: auto 0; }
.br-auth-positioning > span, .br-auth-heading > span { color: #48b9ad; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.br-auth-positioning h1 { margin: 14px 0 16px; font-size: 42px; font-weight: 700; line-height: 1.08; }
.br-auth-positioning p { max-width: 380px; margin: 0; color: #aeb7c7; font-size: 14px; line-height: 1.65; }
.br-auth-signal { display: flex; align-items: center; gap: 8px; color: #8e99ad; font-size: 11px; }
.br-auth-signal span { width: 7px; height: 7px; border-radius: 50%; background: #47bd8a; box-shadow: 0 0 0 4px rgba(71, 189, 138, 0.12); }
.br-auth-main { position: relative; display: grid; min-width: 0; padding: 42px clamp(22px, 7vw, 96px); place-items: center; }
.br-auth-panel { width: min(100%, 600px); }
.br-auth-heading { margin-bottom: 28px; }
.br-auth-heading h2 { margin: 7px 0 8px; color: var(--auth-ink); font-size: 27px; font-weight: 700; }
.br-auth-heading p { margin: 0; color: var(--auth-muted); font-size: 13px; line-height: 1.55; }
.br-auth-form { display: grid; gap: 18px; }
.br-auth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.br-auth-field { min-width: 0; }
.br-auth-field label { display: block; margin: 0 0 7px; color: #343b48; font-size: 11px; font-weight: 700; }
.br-auth-input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cfd5de; border-radius: 4px; background: #fff; color: var(--auth-ink); font-size: 13px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.br-auth-input:focus { border-color: #3a8e85; box-shadow: 0 0 0 3px rgba(20, 125, 114, 0.11); outline: 0; }
.br-auth-input::placeholder { color: #9aa2b0; }
.br-code-input { font-family: "SFMono-Regular", Consolas, monospace; }
.br-password-field { position: relative; }
.br-password-field .br-auth-input { padding-right: 44px; }
.br-password-field button { position: absolute; top: 7px; right: 7px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #778193; font-size: 12px; }
.br-password-field button:hover { background: #f1f3f6; color: #252b36; }
.br-auth-error { display: block; margin-top: 5px; color: #b4232d; font-size: 11px; }
.br-auth-submit { width: 100%; min-height: 44px; margin-top: 2px; border: 1px solid #147d72; border-radius: 4px; background: #147d72; color: #fff; font-size: 13px; font-weight: 700; }
.br-auth-submit:hover { border-color: #0f685f; background: #0f685f; }
.br-auth-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 12px; }
.br-auth-footer a { color: #126f67; font-weight: 700; }
.br-auth-flashes { top: 18px; }

@media (max-width: 820px) {
  .br-auth-shell { grid-template-columns: 1fr; }
  .br-auth-brand { min-height: 154px; padding: 22px; }
  .br-auth-positioning { margin: 24px 0 0; }
  .br-auth-positioning > span, .br-auth-positioning p, .br-auth-signal { display: none; }
  .br-auth-positioning h1 { max-width: 560px; margin: 0; font-size: 24px; }
  .br-auth-main { min-height: calc(100vh - 154px); padding: 34px 20px; }
}

@media (max-width: 560px) {
  .br-auth-fields { grid-template-columns: 1fr; }
  .br-auth-heading h2 { font-size: 23px; }
  .br-auth-footer { align-items: flex-start; flex-direction: column; }
  .br-auth-flashes { top: 10px; right: 10px; left: 10px; width: auto; }
}

/* Legal acknowledgement */
.br-auth-consent{display:grid;grid-template-columns:18px 1fr;gap:8px 9px;margin:16px 0;color:#596663;font-size:10px;line-height:1.5}.br-auth-consent input{width:15px;height:15px;margin:1px 0 0;accent-color:#158276}.br-auth-consent label{margin:0}.br-auth-consent a,.br-auth-legal a{color:#0c756b;font-weight:700}.br-auth-consent .br-auth-error{grid-column:2}.br-auth-legal{display:flex;gap:12px;margin-left:auto}
