:root {
  color-scheme: dark;
  --login-bg: #080808;
  --login-panel: #121212;
  --login-panel-soft: #181818;
  --login-border: #2b2b2b;
  --login-text: #f2f2f2;
  --login-muted: #969696;
  --login-accent: #f2f2f2;
  --login-accent-strong: #d8d8d8;
  --login-danger: #f26b6b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.bo-login {
  margin: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, .055), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(255, 255, 255, .035), transparent 30%),
    var(--login-bg);
  color: var(--login-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bo-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
}

.bo-login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(30px, 6vw, 78px);
}

.bo-login-brand { display: flex; align-items: center; gap: 12px; }
.bo-login-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--login-accent);
  color: #111;
}
.bo-login-mark svg { width: 22px; height: 22px; }
.bo-login-brand strong { display: block; font-size: 16px; }
.bo-login-brand span { display: block; margin-top: 2px; color: var(--login-muted); font-size: 12px; }

.bo-login-copy { max-width: 640px; }
.bo-login-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -.045em; }
.bo-login-copy p { max-width: 580px; margin: 22px 0 0; color: var(--login-muted); font-size: 17px; line-height: 1.7; }

.bo-login-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 32px; }
.bo-login-point { padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.035); }
.bo-login-point svg { width: 19px; height: 19px; color: var(--login-accent); }
.bo-login-point strong { display: block; margin-top: 13px; font-size: 13px; }
.bo-login-point span { display: block; margin-top: 5px; color: var(--login-muted); font-size: 11px; line-height: 1.45; }

.bo-login-foot { color: var(--login-muted); font-size: 12px; }

.bo-login-panel {
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 58px);
  border-left: 1px solid rgba(255,255,255,.08);
  background: rgba(15, 15, 15, .84);
  backdrop-filter: blur(18px);
}

.bo-login-card { width: min(100%, 430px); }
.bo-login-card h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.bo-login-card > p { margin: 9px 0 28px; color: var(--login-muted); line-height: 1.55; }

.bo-login-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(242,107,107,.35); border-radius: 10px; background: rgba(242,107,107,.1); color: #ffd2d2; font-size: 13px; }
.bo-login-form { display: grid; gap: 17px; }
.bo-login-field { display: grid; gap: 7px; }
.bo-login-field label { color: #d6d6d6; font-size: 13px; font-weight: 600; }
.bo-login-input-wrap { position: relative; }
.bo-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 45px 0 14px;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  outline: 0;
  background: var(--login-panel-soft);
  color: var(--login-text);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bo-login-field input:focus { border-color: var(--login-accent); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.bo-login-field input::placeholder { color: #737373; }
.bo-login-input-icon { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; color: var(--login-muted); transform: translateY(-50%); pointer-events: none; }
.bo-password-toggle { position: absolute; top: 50%; right: 8px; min-width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--login-muted); cursor: pointer; transform: translateY(-50%); }
.bo-password-toggle:hover { color: var(--login-text); background: rgba(255,255,255,.05); }

.bo-login-primary,
.bo-login-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.bo-login-primary { border: 1px solid var(--login-accent); background: var(--login-accent); color: #111; }
.bo-login-primary:hover { background: #fff; }
.bo-login-secondary { border: 1px solid var(--login-border); background: transparent; color: var(--login-text); }
.bo-login-secondary:hover { background: rgba(255,255,255,.04); }
.bo-login-support { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 12px 14px; border: 1px solid var(--login-border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--login-text); text-decoration: none; transition: border-color .16s ease, background-color .16s ease; }
.bo-login-support:hover { border-color: #555; background: rgba(255,255,255,.055); }
.bo-login-support svg { width: 18px; height: 18px; flex: 0 0 auto; }
.bo-login-support span { display: grid; gap: 2px; }
.bo-login-support strong { font-size: 12px; }
.bo-login-support small { color: var(--login-muted); font-size: 11px; }
.bo-login-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--login-muted); font-size: 11px; }
.bo-login-divider::before, .bo-login-divider::after { content: ""; height: 1px; flex: 1; background: var(--login-border); }
.bo-login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: var(--login-muted); font-size: 11px; text-align: center; }
.bo-login-security svg { width: 15px; height: 15px; color: var(--login-accent); }

.bo-qr { width: 190px; max-width: 100%; display: block; margin: 0 auto 18px; padding: 10px; border-radius: 12px; background: #fff; }
.bo-setup-note { margin: -10px 0 22px; padding: 12px 14px; border: 1px solid var(--login-border); border-radius: 10px; background: rgba(255,255,255,.04); color: #d8d8d8; font-size: 13px; line-height: 1.5; }

@media (max-width: 920px) {
  .bo-login-shell { grid-template-columns: 1fr; }
  .bo-login-story { min-height: auto; padding-bottom: 26px; }
  .bo-login-copy h1 { font-size: clamp(32px, 9vw, 48px); }
  .bo-login-foot { display: none; }
  .bo-login-panel { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
}

@media (max-width: 560px) {
  .bo-login-story { padding: 24px 18px 20px; }
  .bo-login-points { grid-template-columns: 1fr; }
  .bo-login-point { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; }
  .bo-login-point strong { margin-top: 0; }
  .bo-login-point span { grid-column: 2; }
  .bo-login-panel { padding: 32px 18px 42px; }
}
