:root {
  --text: #08133e;
  --muted: #35466d;
  --soft: #eff5ff;
  --line: #dce5f1;
  --blue: #0b57ff;
  --blue-2: #2675ff;
  --orange: #f5a000;
  --shadow: 0 20px 60px rgba(21, 56, 123, .13), 0 2px 6px rgba(21, 56, 123, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-width: 1440px;
  background: #f8fbff;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.auth-shell {
  position: relative;
  margin: 3px auto;
  width: calc(100vw - 44px);
  min-height: calc(100vh - 6px);
  border: 1px solid #d9e2ee;
  border-radius: 18px;
  background:
    radial-gradient(circle at 31% 28%, rgba(234, 244, 255, .9), transparent 24%),
    radial-gradient(circle at 36% 62%, rgba(228, 239, 255, .9), transparent 19%),
    radial-gradient(circle at 46% 82%, rgba(232, 242, 255, .92), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.auth-shell::before {
  content: "";
  position: absolute;
  left: 285px;
  top: 135px;
  width: 480px;
  height: 640px;
  background: rgba(232, 243, 255, .58);
  border-radius: 45% 55% 50% 48%;
  filter: blur(.2px);
  transform: rotate(-18deg);
}
.language-btn {
  position: absolute;
  right: 45px;
  top: 29px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #17284f;
  font-size: 15px;
  font-weight: 500;
  z-index: 4;
}
.language-btn svg { width: 17px; height: 17px; color: #45587b; }
.language-btn .chevron { width: 14px; height: 14px; }
.auth-layout {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 57px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 58px 80px 58px 52px;
  gap: 68px;
}
.left-side { position: relative; padding-top: 0; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  border: 2px solid #0b57ff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 6px;
  background: #001d55;
  box-shadow: 0 12px 22px rgba(11, 87, 255, .16);
}
.mark-cell { position: relative; border: 1px solid rgba(255,255,255,.62); border-radius: 2px; }
.mark-cell.cross::before, .mark-cell.cross::after, .mark-cell.chart::before, .mark-cell.arrow::before, .mark-cell.arrow::after, .mark-cell.calc::before, .mark-cell.calc::after { content: ""; position: absolute; }
.mark-cell.cross::before { left: 4px; right: 4px; top: 50%; height: 1.5px; background: #fff; transform: translateY(-50%); }
.mark-cell.cross::after { top: 4px; bottom: 4px; left: 50%; width: 1.5px; background: #fff; transform: translateX(-50%); }
.mark-cell.chart::before { left: 6px; right: 4px; bottom: 5px; height: 1.5px; background: #ffd13d; box-shadow: -7px -8px 0 #39a5ff, 8px -4px 0 #22c86c; }
.mark-cell.arrow::before { left: 5px; right: 5px; top: 50%; height: 1.5px; background: #fff; transform: rotate(-28deg); }
.mark-cell.arrow::after { right: 3px; top: 9px; width: 8px; height: 8px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: rotate(17deg); }
.mark-cell.calc::before { inset: 4px; border: 1px solid rgba(255,255,255,.75); border-radius: 2px; }
.mark-cell.calc::after { left: 7px; top: 7px; width: 4px; height: 4px; background: #ffd13d; box-shadow: 10px 0 0 #39a5ff, 0 10px 0 #22c86c, 10px 10px 0 #fff; }
.brand-word { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -1.2px; }
.brand-word span { color: var(--orange); }
.left-side h1 {
  margin: 68px 0 18px;
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: -1px;
  font-weight: 800;
}
.lead { margin: 0 0 30px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.feature-list { display: grid; gap: 24px; margin-top: 30px; }
.feature-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.feature-item i {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-style: normal;
}
.feature-item svg { width: 24px; height: 24px; stroke-width: 2.1px; }
.feature-item strong { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 800; }
.feature-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.3; }
.desk-illustration { position: absolute; left: 16px; bottom: -22px; width: 590px; height: 250px; }
.laptop { position: absolute; left: 110px; bottom: 18px; width: 292px; height: 180px; }
.screen {
  position: absolute;
  left: 18px;
  top: 0;
  width: 280px;
  height: 158px;
  border: 7px solid #bbd0ee;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  box-shadow: 0 16px 28px rgba(63, 115, 183, .22);
  overflow: hidden;
}
.screen-top { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 14px; }
.screen-top i { width: 6px; height: 6px; border-radius: 50%; background: #8eb0e9; }
.screen-top b { margin-left: auto; width: 5px; height: 5px; background: #89aee8; border-radius: 50%; }
.screen-grid { padding: 8px 15px; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 50px 62px; gap: 9px; }
.screen-grid > div { background: #fff; border-radius: 8px; box-shadow: 0 5px 16px rgba(114, 150, 198, .12); }
.chart-line { position: relative; }
.chart-line::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 27px;
  height: 2px;
  background: linear-gradient(110deg, transparent 0 10%, #86aef5 10% 24%, transparent 24% 31%, #86aef5 31% 44%, transparent 44% 53%, #ffbd4c 53% 60%, transparent 60% 66%, #4385ff 66% 100%);
  transform: skewY(-14deg);
}
.bar-chart { display: flex; align-items: flex-end; gap: 8px; padding: 9px 14px; }
.bar-chart i { width: 13px; border-radius: 4px 4px 0 0; background: #4d8dff; }
.bar-chart i:nth-child(1){height:18px}.bar-chart i:nth-child(2){height:30px}.bar-chart i:nth-child(3){height:42px}.bar-chart i:nth-child(4){height:25px;background:#ffbd4c}
.rows { padding: 12px 16px; display: grid; gap: 8px; }
.rows i, .list-lines i { display: block; height: 7px; border-radius: 8px; background: #dbe8fb; }
.donut { position: relative; }
.donut::before { content: ""; position: absolute; width: 52px; height: 52px; border-radius: 50%; left: 24px; top: 6px; background: conic-gradient(#206dff 0 65%, #8fb5ff 65% 85%, #e7effc 85% 100%); }
.donut::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #fff; left: 36px; top: 18px; }
.list-lines { grid-column: 2; padding: 11px 15px; display: grid; gap: 8px; }
.keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35px;
  background: linear-gradient(180deg, #dfeafe, #c6daf5);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 24px rgba(63, 115, 183, .18);
}
.plant { position: absolute; left: 0; bottom: 46px; width: 92px; height: 130px; }
.plant::after { content: ""; position: absolute; left: 30px; bottom: 0; width: 45px; height: 42px; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 12px 20px rgba(114,150,198,.14); }
.plant span { position: absolute; bottom: 38px; left: 50px; width: 22px; height: 54px; background: #42b879; border-radius: 100% 0 100% 0; transform: rotate(42deg); }
.plant span:nth-child(2){left:30px;bottom:40px;transform:rotate(-45deg);background:#52c986}
.plant span:nth-child(3){left:40px;bottom:58px;transform:rotate(5deg);background:#35a86e}
.binder { position: absolute; left: 430px; bottom: 30px; width: 70px; height: 150px; background: linear-gradient(90deg, #1f62d9, #74a7ff); border-radius: 4px; box-shadow: 0 15px 24px rgba(63,115,183,.22); }
.binder::before { content: ""; position: absolute; left: 22px; top: 23px; width: 24px; height: 74px; border-radius: 2px; background: rgba(255,255,255,.75); }
.binder::after { content: ""; position: absolute; left: 22px; bottom: 20px; width: 15px; height: 15px; border-radius: 50%; background: #07306c; border: 2px solid #d7e8ff; }
.boxes { position: absolute; left: 505px; bottom: 18px; width: 90px; height: 60px; }
.boxes i { position: absolute; width: 46px; height: 34px; background: #f4f8ff; border: 1px solid #e0eafb; box-shadow: 0 10px 18px rgba(114,150,198,.11); }
.boxes i:nth-child(1){left:0;bottom:0}.boxes i:nth-child(2){left:36px;bottom:0}.boxes i:nth-child(3){left:18px;bottom:28px}
.right-side { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }
.login-card {
  width: 574px;
  min-height: 676px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 50px 48px 40px;
}
.login-card h2 { margin: 0 0 15px; text-align: center; font-size: 30px; letter-spacing: -.6px; line-height: 1.1; }
.login-card > p { margin: 0 0 38px; text-align: center; color: var(--muted); font-size: 17px; }
form label { display: block; }
form label > span { display: block; margin: 0 0 13px; font-size: 15px; font-weight: 800; }
.input-wrap { position: relative; margin-bottom: 30px; }
.input-wrap input {
  width: 100%;
  height: 56px;
  border: 1px solid #d4dfed;
  border-radius: 8px;
  background: #fff;
  outline: none;
  padding: 0 54px 0 58px;
  color: var(--text);
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
.input-wrap input::placeholder { color: #536585; }
.input-wrap > svg { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #5e6f91; }
.input-wrap .eye { left: auto; right: 18px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 31px; }
.remember { display: flex; align-items: center; gap: 12px; }
.remember input { display: none; }
.remember i { width: 19px; height: 19px; border-radius: 4px; border: 2px solid var(--blue); background: #fff; }
.remember span { margin: 0; font-weight: 500; font-size: 16px; color: var(--text); }
.form-row > a { color: var(--blue); font-size: 16px; font-weight: 600; }
.submit-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #0d63ff, #0056ee);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 86, 238, .25);
}
.divider { display: flex; align-items: center; gap: 23px; margin: 39px 0; color: #7b89a2; font-size: 16px; font-weight: 700; }
.divider span { height: 1px; flex: 1; background: var(--line); }
.divider b { font-weight: 700; }
.security-note {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #fbfdff;
}
.security-note i { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blue); font-style: normal; }
.security-note svg { width: 32px; height: 32px; stroke-width: 1.9px; }
.security-note p { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; }
.access-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.45; }
.footer {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 58px;
  background: rgba(255,255,255,.56);
  color: #50627f;
  font-size: 14px;
}
.footer p { grid-column: 2; margin: 0; text-align: center; }
.footer nav { grid-column: 3; justify-self: center; display: flex; gap: 38px; }
.footer a { color: var(--blue); font-weight: 700; }
@media (max-width: 1200px) {
  body { min-width: 0; }
  .auth-shell { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
  .auth-layout { grid-template-columns: 1fr; padding: 32px 22px 92px; gap: 28px; }
  .language-btn { right: 18px; top: 18px; }
  .left-side h1 { margin-top: 36px; }
  .desk-illustration { position: relative; left: 0; bottom: 0; transform: scale(.8); transform-origin: left top; }
  .login-card { width: min(574px, 100%); }
  .footer { position: relative; height: auto; grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .footer p, .footer nav { grid-column: auto; justify-self: center; flex-wrap: wrap; }
}


/* v19 requested auth visual tuning */
html[data-theme="dark"]{
  color-scheme:dark;
}

html[data-theme="dark"] body{
  background:#050b18;
  color:#eef5ff;
}

html[data-theme="dark"] .auth-shell{
  border-color:#1d3766;
  background:
    radial-gradient(circle at 31% 28%, rgba(20, 70, 150, .18), transparent 24%),
    radial-gradient(circle at 36% 62%, rgba(0, 88, 255, .14), transparent 19%),
    radial-gradient(circle at 46% 82%, rgba(5, 22, 58, .92), transparent 18%),
    linear-gradient(180deg, #071022 0%, #040814 100%);
  box-shadow: inset 0 1px 0 rgba(120,165,255,.14);
}

html[data-theme="dark"] .auth-shell::before{
  background:rgba(8,35,85,.42);
}

.top-actions{
  position:absolute;
  right:45px;
  top:29px;
  display:flex;
  align-items:center;
  gap:12px;
  z-index:4;
}

.theme-toggle-btn{
  height:35px;
  min-width:78px;
  border:1px solid #183a76;
  border-radius:9px;
  background:#071943;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:0 11px;
  box-shadow:0 10px 24px rgba(3,22,65,.18);
}

.theme-toggle-btn span{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:16px;
  line-height:1;
}

.theme-toggle-btn .sun{
  color:#ffd448;
}

.theme-toggle-btn .moon{
  color:#dbe8ff;
}

html[data-theme="light"] .theme-toggle-btn{
  background:#fff;
  border-color:var(--line);
  color:#17284f;
  box-shadow:none;
}

html[data-theme="light"] .theme-toggle-btn .sun{
  background:#fff4c6;
  color:#f5a000;
}

html[data-theme="dark"] .theme-toggle-btn .moon{
  background:rgba(255,255,255,.11);
}

.home-btn{
  height:35px;
  border:1px solid var(--line);
  border-radius:7px;
  background:rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 15px;
  color:#17284f;
  font-size:15px;
  font-weight:700;
}

html[data-theme="dark"] .home-btn{
  border-color:#1d3766;
  background:#071943;
  color:#eaf2ff;
}

.brand-logo-icon{
  width:62px;
  height:62px;
  border-radius:8px;
  object-fit:contain;
  display:block;
  box-shadow:0 12px 22px rgba(11, 87, 255, .14);
}

html[data-theme="dark"] .brand-word,
html[data-theme="dark"] .left-side h1,
html[data-theme="dark"] .feature-item strong,
html[data-theme="dark"] .login-card h2,
html[data-theme="dark"] form label > span,
html[data-theme="dark"] .remember span,
html[data-theme="dark"] .security-note p{
  color:#f2f7ff;
}

html[data-theme="dark"] .lead,
html[data-theme="dark"] .feature-item span,
html[data-theme="dark"] .login-card > p,
html[data-theme="dark"] .access-note{
  color:#b8c6dc;
}

html[data-theme="dark"] .feature-item i{
  background:#0d2458;
  color:#5f9dff;
}

.desk-illustration{
  position:absolute;
  left:-6px;
  bottom:-10px;
  width:655px;
  height:250px;
  overflow:visible;
}

.auth-illustration{
  position:absolute;
  left:0;
  bottom:0;
  width:650px;
  height:auto;
  display:block;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}

.auth-illustration-dark{
  display:none;
  width:760px;
  left:-58px;
  bottom:-4px;
}

html[data-theme="dark"] .auth-illustration-light{
  display:none;
}

html[data-theme="dark"] .auth-illustration-dark{
  display:block;
}

html[data-theme="dark"] .login-card{
  border-color:#1d3766;
  background:rgba(9,18,40,.88);
  box-shadow:0 20px 70px rgba(0,0,0,.42), 0 2px 8px rgba(0,0,0,.24);
}

html[data-theme="dark"] .input-wrap input{
  border-color:#233e70;
  background:#07152f;
  color:#eef5ff;
}

html[data-theme="dark"] .input-wrap input::placeholder{
  color:#91a4c4;
}

html[data-theme="dark"] .input-wrap > svg{
  color:#95a8c9;
}

html[data-theme="dark"] .remember i{
  background:#07152f;
}

.security-note{
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:16px;
  padding:16px 18px 16px 24px;
}

.security-note p{
  overflow-wrap:anywhere;
}

.demo-access-btn{
  min-width:126px;
  min-height:42px;
  border-radius:8px;
  background:linear-gradient(180deg, #0d63ff, #0056ee);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  font-size:15px;
  font-weight:800;
  box-shadow:0 12px 24px rgba(0, 86, 238, .22);
  white-space:nowrap;
}

html[data-theme="dark"] .security-note{
  border-color:#1d3766;
  background:#07152f;
}

.footer{
  grid-template-columns:1fr 1fr;
  padding:0 58px;
}

.footer p{
  grid-column:1;
  justify-self:start;
}

.footer nav{
  grid-column:2;
  justify-self:end;
}

html[data-theme="dark"] .footer{
  border-top-color:#1d3766;
  background:rgba(7,16,34,.72);
  color:#b8c6dc;
}

html[data-theme="dark"] .footer a{
  color:#6fa8ff;
}

@media (max-width:1200px){
  .top-actions{
    right:18px;
    top:18px;
  }
  .desk-illustration{
    position:relative;
    left:0;
    bottom:0;
    width:100%;
    height:auto;
    min-height:190px;
    transform:none;
  }
  .auth-illustration,
  .auth-illustration-dark{
    position:relative;
    left:auto;
    bottom:auto;
    width:min(650px,100%);
  }
  .security-note{
    grid-template-columns:44px 1fr;
  }
  .demo-access-btn{
    grid-column:1 / -1;
  }
  .footer{
    grid-template-columns:1fr;
  }
  .footer p,
  .footer nav{
    grid-column:auto;
    justify-self:center;
  }
}

@media (max-width:560px){
  .top-actions{
    left:18px;
    right:18px;
    justify-content:flex-end;
  }
  .home-btn{
    padding:0 10px;
  }
}


/* v20: equal illustration area, horizontal demo block, no desktop scroll */
@media (min-width:1201px){
  html,
  body{
    height:100vh;
    max-height:100vh;
    overflow:hidden;
  }

  .auth-shell{
    height:calc(100vh - 6px);
    min-height:0;
  }

  .auth-layout{
    height:calc(100vh - 58px);
    min-height:0;
    grid-template-columns:minmax(600px,1fr) minmax(520px,1fr);
    gap:58px;
    padding:54px 76px 54px 52px;
  }

  .left-side{
    min-height:0;
  }

  .brand-logo-icon{
    width:60px;
    height:60px;
  }

  .brand-word{
    font-size:35px;
  }

  .left-side h1{
    margin:48px 0 16px;
    font-size:32px;
    line-height:1.24;
  }

  .lead{
    margin-bottom:24px;
    font-size:17px;
    line-height:1.42;
  }

  .feature-list{
    gap:18px;
    margin-top:24px;
  }

  .feature-item{
    grid-template-columns:46px 1fr;
    gap:14px;
  }

  .feature-item i{
    width:46px;
    height:46px;
  }

  .feature-item strong{
    margin-bottom:4px;
    font-size:15px;
  }

  .feature-item span{
    font-size:14px;
  }

  .desk-illustration{
    left:0;
    bottom:-8px;
    width:650px;
    height:210px;
  }

  .auth-illustration,
  .auth-illustration-dark{
    position:absolute;
    left:0;
    right:auto;
    bottom:0;
    width:650px;
    height:210px;
    max-width:650px;
    max-height:210px;
    object-fit:contain;
    object-position:left bottom;
  }

  .right-side{
    padding-top:14px;
    min-height:0;
  }

  .login-card{
    width:574px;
    min-height:0;
    height:auto;
    padding:40px 48px 30px;
  }

  .login-card h2{
    margin-bottom:11px;
    font-size:28px;
  }

  .login-card > p{
    margin-bottom:28px;
    font-size:16px;
  }

  form label > span{
    margin-bottom:9px;
    font-size:14px;
  }

  .input-wrap{
    margin-bottom:22px;
  }

  .input-wrap input{
    height:52px;
    font-size:16px;
  }

  .form-row{
    margin:0 0 22px;
  }

  .submit-btn{
    height:54px;
  }

  .divider{
    margin:26px 0;
  }

  .security-note{
    min-height:0;
  }

  .access-note{
    margin-top:14px;
    font-size:15px;
  }
}

.desk-illustration{
  display:block;
}

.auth-illustration,
.auth-illustration-dark{
  object-fit:contain;
  object-position:left bottom;
}

html[data-theme="light"] .auth-illustration-light{
  display:block;
}

html[data-theme="light"] .auth-illustration-dark{
  display:none;
}

html[data-theme="dark"] .auth-illustration-light{
  display:none;
}

html[data-theme="dark"] .auth-illustration-dark{
  display:block;
}

.security-note{
  grid-template-columns:44px minmax(0,1fr);
  align-items:start;
  padding:16px 18px;
}

.security-note i{
  grid-column:1;
  grid-row:1;
}

.security-note p{
  grid-column:2;
  grid-row:1;
  width:100%;
  max-width:none;
  font-size:14px;
  line-height:1.45;
  font-weight:700;
  text-align:left;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
}

.demo-access-btn{
  grid-column:1 / -1;
  grid-row:2;
  width:100%;
  margin-top:12px;
}

@media (max-width:1200px){
  html,
  body{
    min-height:100%;
    overflow-x:hidden;
  }

  .auth-layout{
    padding-bottom:76px;
  }

  .auth-illustration,
  .auth-illustration-dark{
    width:min(650px,100%);
    max-width:650px;
    aspect-ratio:650 / 210;
    height:auto;
    object-fit:contain;
  }

  .security-note p{
    grid-column:1 / -1;
  }
}


/* v21: remove legacy illustration fragments and decorative oval */
.auth-shell::before{
  content:none!important;
  display:none!important;
}

.plant,
.laptop,
.screen,
.keyboard,
.binder,
.boxes{
  display:none!important;
}


/* v22: wider left/right sections with minimal gap */
@media (min-width:1201px){
  .auth-layout{
    grid-template-columns:minmax(720px,1.18fr) minmax(620px,.98fr);
    gap:18px;
    padding-left:38px;
    padding-right:38px;
  }

  .left-side{
    width:100%;
    max-width:none;
    padding-right:8px;
  }

  .right-side{
    width:100%;
    align-items:stretch;
    padding-left:8px;
  }

  .login-card{
    width:100%;
    max-width:none;
  }

  .desk-illustration{
    width:100%;
    max-width:760px;
  }

  .auth-illustration,
  .auth-illustration-dark{
    width:100%;
    max-width:760px;
  }
}


/* v23: owner-focused wide left content */
@media (min-width:1201px){
  .auth-layout{
    grid-template-columns:minmax(820px,1.25fr) minmax(620px,.95fr);
    gap:14px;
    padding-left:28px;
    padding-right:28px;
  }

  .left-side{
    padding-right:4px;
  }

  .right-side{
    padding-left:4px;
  }

  .owner-benefits-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 18px;
    margin-top:20px;
  }

  .owner-benefits-grid .feature-item{
    grid-template-columns:44px minmax(0,1fr);
    gap:12px;
    align-items:start;
    min-width:0;
    padding:10px 12px;
    border:1px solid rgba(116,151,210,.18);
    border-radius:12px;
    background:rgba(255,255,255,.34);
  }

  html[data-theme="dark"] .owner-benefits-grid .feature-item{
    border-color:rgba(78,127,210,.22);
    background:rgba(7,20,48,.32);
  }

  .owner-benefits-grid .feature-item i{
    width:44px;
    height:44px;
  }

  .owner-benefits-grid .feature-item strong{
    font-size:14px;
    line-height:1.25;
  }

  .owner-benefits-grid .feature-item span{
    font-size:12px;
    line-height:1.35;
  }

  .owner-result-banner{
    margin-top:16px;
    width:100%;
    padding:12px 14px;
    border:1px solid rgba(11,87,255,.20);
    border-radius:12px;
    background:rgba(232,243,255,.70);
    color:#27406f;
    font-size:13px;
    line-height:1.45;
    font-weight:750;
  }

  html[data-theme="dark"] .owner-result-banner{
    border-color:rgba(79,139,255,.28);
    background:rgba(10,34,82,.54);
    color:#c8d8f4;
  }

  .desk-illustration{
    width:100%;
    max-width:820px;
  }

  .auth-illustration,
  .auth-illustration-dark{
    max-width:820px;
  }

  .login-card{
    max-width:none;
  }
}

@media (max-width:1200px){
  .owner-benefits-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .owner-result-banner{
    margin-top:16px;
    padding:12px 14px;
    border:1px solid rgba(11,87,255,.20);
    border-radius:12px;
    background:rgba(232,243,255,.70);
    color:#27406f;
    font-size:13px;
    line-height:1.45;
    font-weight:750;
  }

  html[data-theme="dark"] .owner-result-banner{
    border-color:rgba(79,139,255,.28);
    background:rgba(10,34,82,.54);
    color:#c8d8f4;
  }
}

@media (max-width:720px){
  .owner-benefits-grid{
    grid-template-columns:1fr;
  }
}


/* v25: functional authorization */
.auth-shell{
  border:none!important;
}

.password-toggle-btn{
  position:absolute;
  right:10px;
  top:50%;
  width:36px;
  height:36px;
  transform:translateY(-50%);
  border:0;
  border-radius:9px;
  background:transparent;
  color:#6d7e9c;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.password-toggle-btn svg{
  width:20px;
  height:20px;
}

.password-toggle-btn.is-visible{
  color:#0b63ff;
  background:rgba(11,99,255,.08);
}

.auth-message{
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(232,243,255,.74);
  color:#27406f;
  font-size:13px;
  font-weight:800;
  line-height:1.4;
}

.auth-message[hidden],
.twofa-panel[hidden],
.superadmin-panel[hidden],
.auth-modal[hidden]{
  display:none!important;
}

.auth-message.is-error{
  border-color:rgba(226,49,67,.28);
  background:rgba(226,49,67,.10);
  color:#c72639;
}

.auth-message.is-success{
  border-color:rgba(20,164,91,.28);
  background:rgba(20,164,91,.10);
  color:#12824c;
}

.auth-message.is-warning{
  border-color:rgba(222,146,0,.30);
  background:rgba(245,164,0,.12);
  color:#9d6400;
}

.twofa-panel,
.superadmin-panel{
  margin:18px 0 0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(245,249,255,.82);
}

.twofa-panel__head{
  display:grid;
  gap:5px;
  margin-bottom:13px;
}

.twofa-panel__head strong{
  color:var(--text);
  font-size:15px;
}

.twofa-panel__head span{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.twofa-panel__actions,
.auth-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.twofa-panel__actions button,
.auth-modal__actions button{
  min-height:40px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:#23385f;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.twofa-panel__actions button:last-child,
.auth-modal__actions button:last-child{
  border-color:#0b63ff;
  background:#0b63ff;
  color:#fff;
}

.auth-modal{
  position:fixed;
  inset:0;
  z-index:2147482000;
  display:grid;
  place-items:center;
  padding:20px;
}

.auth-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,10,28,.66);
  backdrop-filter:blur(8px);
}

.auth-modal__dialog{
  position:relative;
  width:min(470px,100%);
  padding:24px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.28);
}

.auth-modal__dialog h3{
  margin:0 0 8px;
  color:#07143c;
  font-size:22px;
}

.auth-modal__dialog > p{
  margin:0 0 18px;
  color:#5b6b87;
  line-height:1.5;
}

.auth-modal__dialog label > span{
  display:block;
  margin-bottom:8px;
  color:#07143c;
  font-weight:800;
}

html[data-theme="dark"] .auth-message{
  border-color:#26477d;
  background:#0a214c;
  color:#d4e2fb;
}

html[data-theme="dark"] .twofa-panel,
html[data-theme="dark"] .superadmin-panel{
  border-color:#26477d;
  background:#07152f;
}

html[data-theme="dark"] .twofa-panel__head strong{
  color:#f2f7ff;
}

html[data-theme="dark"] .twofa-panel__head span{
  color:#aebfd8;
}

html[data-theme="dark"] .twofa-panel__actions button,
html[data-theme="dark"] .auth-modal__actions button{
  border-color:#26477d;
  background:#0b1d3d;
  color:#dce8fb;
}

html[data-theme="dark"] .auth-modal__dialog{
  border-color:#26477d;
  background:#08152f;
}

html[data-theme="dark"] .auth-modal__dialog h3,
html[data-theme="dark"] .auth-modal__dialog label > span{
  color:#f2f7ff;
}

html[data-theme="dark"] .auth-modal__dialog > p{
  color:#b6c5dc;
}


/* v26: full-page shell, support popover, fixed remember control */
html,
body{
  min-height:100%;
}

.auth-shell{
  width:100%!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  border:none!important;
  border-radius:0!important;
}

@media (min-width:1201px){
  .auth-shell{
    width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
  }
}

.remember{
  position:relative;
  cursor:pointer;
  user-select:none;
}

.remember input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  opacity:0!important;
  pointer-events:none;
}

.remember i{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 19px;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.remember i::after{
  content:"";
  width:8px;
  height:4px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg) translateY(-1px);
  opacity:0;
  transition:opacity .14s ease;
}

.remember input:checked + i{
  border-color:var(--blue);
  background:var(--blue);
  box-shadow:0 0 0 3px rgba(11,99,255,.14);
}

.remember input:checked + i::after{
  opacity:1;
}

.remember input:focus-visible + i{
  outline:3px solid rgba(11,99,255,.22);
  outline-offset:2px;
}

.footer-nav{
  position:relative;
  justify-self:end!important;
  align-items:center;
}

.footer-link{
  border:0;
  padding:0;
  background:transparent;
  color:var(--blue);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.support-menu-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

.support-popover{
  position:absolute;
  right:0;
  bottom:calc(100% + 14px);
  z-index:2147481000;
  width:260px;
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 20px 60px rgba(8,27,73,.22);
}

.support-popover[hidden]{
  display:none!important;
}

.support-popover::after{
  content:"";
  position:absolute;
  right:24px;
  bottom:-7px;
  width:12px;
  height:12px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fff;
  transform:rotate(45deg);
}

.support-popover strong{
  color:#07143c;
  font-size:14px;
}

.support-action{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:9px;
  color:#fff!important;
  font-size:13px;
  font-weight:850!important;
  text-align:center;
}

.support-action--telegram{
  background:linear-gradient(180deg,#1599e8,#087fc7);
}

.support-action--email{
  background:linear-gradient(180deg,#0d63ff,#0056ee);
}

html[data-theme="dark"] .support-popover{
  border-color:#26477d;
  background:#08152f;
  box-shadow:0 20px 60px rgba(0,0,0,.42);
}

html[data-theme="dark"] .support-popover::after{
  border-color:#26477d;
  background:#08152f;
}

html[data-theme="dark"] .support-popover strong{
  color:#f2f7ff;
}

@media (max-width:1200px){
  .footer-nav{
    justify-self:center!important;
  }

  .support-popover{
    right:50%;
    transform:translateX(50%);
  }
}

.mobile-auth-hero,
.mobile-auth-about,
.mobile-card-badge{
  display:none;
}

@media (max-width: 900px){
  body{
    background:linear-gradient(180deg,#fbfaf7 0%, #f4f2ee 100%);
  }

  .top-actions,
  .language-btn,
  .left-side,
  .divider,
  .security-note,
  .footer{
    display:none !important;
  }

  .auth-shell::before,
  .auth-shell::after{
    display:none;
  }

  .auth-shell{
    max-width:100%;
    min-height:100vh;
    padding:0;
    background:transparent;
  }

  .mobile-auth-hero{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:34px 24px 18px;
  }

  .mobile-auth-hero__main{
    flex:1;
    min-width:0;
  }

  .mobile-auth-hero__main h1{
    margin:0 0 14px;
    font-size:clamp(42px, 7.6vw, 64px);
    line-height:1;
    letter-spacing:-0.04em;
    color:#07143c;
  }

  .mobile-auth-hero__main p{
    margin:0;
    max-width:560px;
    color:#56627a;
    font-size:16px;
    line-height:1.55;
    font-weight:500;
  }

  .mobile-auth-hero__actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(88px, 120px));
    gap:14px;
    flex:0 0 auto;
  }

  .mobile-auth-action{
    min-height:96px;
    padding:14px 10px;
    border:1px solid rgba(20,43,86,.10);
    border-radius:22px;
    background:rgba(255,255,255,.84);
    box-shadow:0 10px 30px rgba(17,29,61,.08);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#131f43;
    font-weight:700;
    text-align:center;
  }

  .mobile-auth-action__icon{
    font-size:34px;
    line-height:1;
  }

  .auth-layout{
    min-height:auto;
    display:block;
    padding:0 24px 32px;
  }

  .right-side{
    display:block;
    padding:0;
  }

  .login-card{
    width:100%;
    min-height:auto;
    padding:34px 24px 28px;
    border-radius:28px;
    border-color:rgba(20,43,86,.08);
    background:rgba(255,255,255,.90);
    box-shadow:0 16px 46px rgba(16,31,67,.08);
  }

  .mobile-card-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0 auto 26px;
    padding:16px 22px;
    border-radius:20px;
    background:#edf3ff;
    color:#1f59d9;
    font-size:16px;
    font-weight:900;
  }

  .mobile-card-badge i{
    font-style:normal;
    font-size:22px;
  }

  .login-card h2,
  .login-card > p{
    display:none;
  }

  form label > span{
    margin:0 0 10px;
    font-size:16px;
    color:#121d41;
  }

  .input-wrap{
    margin-bottom:22px;
  }

  .input-wrap input{
    height:72px;
    border-radius:18px;
    border-color:#d6ddea;
    padding:0 66px 0 72px;
    font-size:18px;
    background:#fff;
  }

  .input-wrap > svg{
    left:24px;
    width:28px;
    height:28px;
  }

  .input-wrap .password-toggle-btn{
    right:18px;
  }

  .form-row{
    gap:16px;
    margin:4px 0 24px;
  }

  .remember span,
  .form-row > a{
    font-size:16px;
  }

  .submit-btn{
    height:68px;
    border-radius:16px;
    font-size:18px;
  }

  .mobile-auth-about{
    display:grid;
    gap:14px;
    margin-top:24px;
    padding:24px 18px 10px;
    border-radius:24px;
    background:#fff;
    border:1px solid rgba(20,43,86,.08);
    box-shadow:0 12px 30px rgba(16,31,67,.06);
  }

  .mobile-auth-about h3{
    margin:0 0 4px;
    font-size:20px;
    color:#111b3f;
  }

  .mobile-auth-about__item{
    display:grid;
    grid-template-columns:56px minmax(0,1fr);
    gap:14px;
    align-items:center;
    padding:14px;
    border:1px solid #e6ebf3;
    border-radius:18px;
    background:#fff;
  }

  .mobile-auth-about__item i{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#eef3ff;
    color:#2b63de;
    font-style:normal;
    font-size:26px;
  }

  .mobile-auth-about__item strong{
    display:block;
    margin-bottom:4px;
    color:#111b3f;
    font-size:17px;
  }

  .mobile-auth-about__item span{
    display:block;
    color:#616d83;
    font-size:14px;
    line-height:1.45;
  }

  html[data-theme="dark"] body{
    background:linear-gradient(180deg,#070d1f 0%, #0b1430 100%);
  }

  html[data-theme="dark"] .mobile-auth-hero__main h1,
  html[data-theme="dark"] .mobile-auth-about h3,
  html[data-theme="dark"] .mobile-auth-about__item strong{
    color:#f4f7ff;
  }

  html[data-theme="dark"] .mobile-auth-hero__main p,
  html[data-theme="dark"] .mobile-auth-about__item span{
    color:#b9c6dc;
  }

  html[data-theme="dark"] .mobile-auth-action,
  html[data-theme="dark"] .login-card,
  html[data-theme="dark"] .mobile-auth-about,
  html[data-theme="dark"] .mobile-auth-about__item{
    background:rgba(11,21,47,.92);
    border-color:#233c6e;
    box-shadow:none;
  }

  html[data-theme="dark"] .mobile-card-badge{
    background:#0d2458;
    color:#76a9ff;
  }
}

@media (max-width: 560px){
  .mobile-auth-hero{
    flex-direction:column;
  }

  .mobile-auth-hero__actions{
    width:100%;
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .auth-layout{
    padding:0 16px 24px;
  }

  .mobile-auth-hero{
    padding:28px 16px 18px;
  }

  .login-card{
    padding:28px 18px 22px;
    border-radius:24px;
  }

  .input-wrap input{
    height:64px;
    padding-left:64px;
    font-size:17px;
  }

  .input-wrap > svg{
    left:20px;
    width:24px;
    height:24px;
  }
}

/* Performance: one theme-aware illustration instead of loading both PNG variants. */
html[data-theme="dark"] .auth-illustration{display:block;width:760px;left:-58px;bottom:-4px}
html[data-theme="light"] .auth-illustration{display:block}

/* v1.0.186: безопасное восстановление пароля по шестизначному коду */
.auth-modal__dialog > label,
#reset-confirm-fields > label {
  display: block;
  margin-bottom: 16px;
}

#reset-confirm-fields {
  display: grid;
  gap: 0;
}

#reset-confirm-fields[hidden] {
  display: none !important;
}

#reset-email[readonly] {
  opacity: .78;
  cursor: default;
}

#reset-code {
  letter-spacing: .28em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .auth-modal__dialog {
    padding: 20px;
  }

  .auth-modal__actions {
    flex-direction: column-reverse;
  }

  .auth-modal__actions button {
    width: 100%;
  }
}

.twofa-setup-details{
  display:grid;
  justify-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.78);
  text-align:center;
}
.twofa-setup-details[hidden]{display:none!important}
.twofa-setup-details img{width:180px;max-width:100%;height:auto;border-radius:8px;background:#fff}
.twofa-setup-details p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.twofa-setup-details code{max-width:100%;overflow-wrap:anywhere;padding:7px 9px;border-radius:7px;background:rgba(11,99,255,.08);font-weight:800;letter-spacing:.08em}
