:root {
  color-scheme: light;
  --brand: #0d56d9;
  --brand-dark: #0845b4;
  --ink: #172033;
  --muted: #6e788b;
  --line: #dfe4ec;
  --panel: #ffffff;
  --canvas: #f6f8fb;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(13, 86, 217, .035) 50%, transparent 50.1%),
    radial-gradient(circle at 18% 30%, rgba(13, 86, 217, .08), transparent 31rem),
    var(--canvas);
}
button, input { font: inherit; }

.auth-header {
  height: 68px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}
.auth-brand { display: flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: 22px; letter-spacing: -.045em; }
.auth-brand strong { font-weight: 800; }
.auth-brand > span:not(.auth-brand__mark) { color: var(--brand); font-weight: 500; }
.auth-brand__mark { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 2px; border-radius: 50%; color: #fff !important; background: var(--brand); font-size: 12px; }
.auth-header__caption { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.auth-page {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}
.auth-intro { max-width: 520px; }
.auth-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.auth-kicker span { width: 28px; height: 2px; background: var(--brand); }
.auth-intro h1 { margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.auth-intro > p:not(.auth-kicker) { max-width: 470px; margin: 24px 0 36px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.auth-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth-trust > div { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-trust span { color: var(--brand); font: 600 11px/1.4 ui-monospace, monospace; }
.auth-trust p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-trust strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }

.auth-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(33, 48, 76, .13);
}
.auth-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-card__eyebrow { margin: 0 0 4px; color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.auth-card h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.auth-lock { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--brand); background: #edf4ff; }
.auth-lock svg { width: 20px; height: 20px; }
.auth-banner { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #f1a5ac; border-radius: 5px; color: #b42332; background: #fff3f4; font-size: 13px; }
.auth-role { display: flex; align-items: center; gap: 11px; margin: -4px 0 20px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; }
.auth-role__dot { width: 9px; height: 9px; border-radius: 50%; background: #14a66f; box-shadow: 0 0 0 4px rgba(20, 166, 111, .11); flex: none; }
.auth-role b, .auth-role small { display: block; }
.auth-role b { margin-bottom: 2px; font-size: 12px; }
.auth-role small { color: var(--muted); font-size: 11px; }

.auth-authority { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.auth-authority legend { margin-bottom: 8px; color: #49546a; font-size: 12px; font-weight: 600; }
.auth-authority label { position: relative; display: block; cursor: pointer; }
.auth-authority input { position: absolute; opacity: 0; pointer-events: none; }
.auth-authority label > span { display: block; min-height: 62px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; transition: border-color .15s, background .15s, box-shadow .15s; }
.auth-authority b, .auth-authority small { display: block; }
.auth-authority b { margin-bottom: 4px; font-size: 13px; }
.auth-authority small { color: var(--muted); font-size: 11px; }
.auth-authority input:checked + span { border-color: var(--brand); background: #f4f8ff; box-shadow: inset 3px 0 0 var(--brand); }
.auth-authority input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.auth-field { display: grid; gap: 7px; margin: 0 0 16px; color: #49546a; font-size: 12px; font-weight: 600; }
.auth-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.auth-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 86, 217, .1); }
.auth-input svg { width: 18px; height: 18px; margin-left: 13px; color: #8b95a7; flex: none; }
.auth-input input { width: 100%; padding: 12px 13px 12px 10px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.auth-input input::placeholder { color: #a5adba; }
.auth-field > small { color: #b42332; font-weight: 500; }
.auth-submit { width: 100%; margin-top: 4px; padding: 13px 18px; border: 0; border-radius: 5px; color: #fff; background: var(--brand); cursor: pointer; font-weight: 700; transition: background .15s, transform .15s; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-submit:active { transform: translateY(1px); }
.auth-security { display: flex; gap: 9px; margin: 18px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.45; }
.auth-security svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

.auth-footer { height: 48px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .auth-intro { margin: 0 auto; text-align: center; }
  .auth-kicker { justify-content: center; }
  .auth-intro h1 { font-size: 48px; }
  .auth-intro > p:not(.auth-kicker) { margin: 18px auto 26px; }
  .auth-trust { text-align: left; }
  .auth-card { width: min(440px, 100%); margin: 0 auto; }
}
@media (max-width: 520px) {
  .auth-header { height: 58px; padding-inline: 18px; }
  .auth-brand { font-size: 18px; }
  .auth-header__caption, .auth-intro, .auth-footer span:last-child { display: none; }
  .auth-page { width: calc(100% - 24px); min-height: calc(100vh - 100px); padding: 20px 0; }
  .auth-card { padding: 22px 18px; }
  .auth-authority { grid-template-columns: 1fr; }
  .auth-authority label > span { min-height: 54px; }
  .auth-footer { height: 42px; justify-content: center; }
}
