:root{
  --auth-bg:#07101d;
  --auth-panel:#0f1a33;
  --auth-panel-2:#0b142a;
  --auth-text:#eef5ff;
  --auth-muted:#a8bad8;
  --auth-line:rgba(190,214,255,.16);
  --auth-primary:#2b6cff;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 0%,rgba(43,108,255,.2),transparent 30rem),
    linear-gradient(180deg,#07101d,#0b1220);
  color:var(--auth-text);
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  letter-spacing:0;
}
a{color:inherit}
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(440px,.9fr) minmax(520px,1.1fr)}
.auth-form-side{display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:clamp(22px,4vw,56px)}
.auth-brand{width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:12px;text-decoration:none}
.auth-brand img{width:54px;height:54px}
.auth-brand strong{display:block;font-size:20px}
.auth-brand span{display:block;color:var(--auth-muted);font-size:13px}
.auth-card{
  width:min(500px,100%);display:grid;gap:20px;border:1px solid var(--auth-line);border-radius:8px;
  background:rgba(15,26,51,.93);padding:clamp(22px,3vw,34px);box-shadow:0 26px 80px rgba(0,0,0,.34)
}
.auth-kicker{
  width:max-content;max-width:100%;border:1px solid rgba(245,198,93,.28);border-radius:999px;padding:7px 10px;
  color:#ffe3a3;background:rgba(245,198,93,.09);font-size:12px;font-weight:900
}
.auth-title{display:grid;gap:8px}
.auth-title h1{margin:0;font-size:clamp(28px,3vw,40px);line-height:1.06}
.auth-title p,.auth-benefits p{margin:0;color:var(--auth-muted);line-height:1.55}
.auth-form,.field-grid{display:grid;gap:14px}
.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
label{display:block;margin-bottom:7px;color:#dce9ff;font-size:13px;font-weight:800}
input{
  width:100%;min-height:48px;padding:0 14px;border:1px solid var(--auth-line);border-radius:8px;
  background:var(--auth-panel-2);color:var(--auth-text);outline:none
}
input:focus{border-color:rgba(43,108,255,.72);box-shadow:0 0 0 4px rgba(43,108,255,.16)}
button{
  min-height:48px;border:0;border-radius:8px;background:var(--auth-primary);color:#fff;
  font-weight:900;cursor:pointer
}
button:disabled{opacity:.58;cursor:not-allowed}
.auth-links{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:var(--auth-muted);font-size:14px}
.auth-links a{color:#c7d9ff;font-weight:900;text-decoration:none}
.msg{
  display:none;border:1px solid var(--auth-line);border-radius:8px;padding:11px 12px;font-size:13px;
  line-height:1.45;white-space:pre-wrap
}
.msg.ok{display:block;color:#b7ffcc;border-color:rgba(80,214,139,.35);background:rgba(80,214,139,.1)}
.msg.err{display:block;color:#ffc0c7;border-color:rgba(239,108,119,.34);background:rgba(239,108,119,.1)}
.auth-visual{position:relative;min-height:100vh;overflow:hidden;border-left:1px solid var(--auth-line);background:#081121}
.auth-visual img{width:100%;height:100%;object-fit:cover;object-position:center top}
.auth-visual::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(7,16,29,.08),rgba(7,16,29,.58)),linear-gradient(180deg,transparent 42%,rgba(7,16,29,.92))
}
.auth-benefits{
  position:absolute;z-index:1;left:clamp(20px,4vw,48px);right:clamp(20px,4vw,48px);bottom:clamp(20px,4vw,48px);
  display:grid;gap:14px;padding:22px;border:1px solid rgba(255,255,255,.18);border-radius:8px;
  background:rgba(7,16,29,.74);backdrop-filter:blur(18px)
}
.auth-benefits h2{margin:0;font-size:clamp(24px,2.5vw,36px);line-height:1.08}
.auth-benefit-list{display:flex;gap:8px;flex-wrap:wrap}
.auth-chip{
  border:1px solid var(--auth-line);border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.06);
  color:#dbe8ff;font-size:13px;font-weight:800
}
.auth-footer{color:var(--auth-muted);font-size:13px}
.auth-brand-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
:root[data-theme="light"] body{
  background:
    radial-gradient(circle at 8% 0%,rgba(43,108,255,.16),transparent 30rem),
    linear-gradient(180deg,#eef4ff,#f9fbff);
  color:#102348;
}
:root[data-theme="light"] .auth-card{
  border-color:rgba(16,35,72,.14);
  background:rgba(255,255,255,.9);
  box-shadow:0 26px 80px rgba(13,32,64,.14);
}
:root[data-theme="light"] .auth-title p,
:root[data-theme="light"] .auth-benefits p,
:root[data-theme="light"] .auth-links,
:root[data-theme="light"] .auth-footer,
:root[data-theme="light"] .auth-brand span{color:rgba(16,35,72,.68)}
:root[data-theme="light"] .auth-links a{color:#173b79}
:root[data-theme="light"] .auth-kicker{color:#765300;border-color:rgba(185,132,14,.24);background:rgba(245,198,93,.16)}
:root[data-theme="light"] label{color:#173b79}
:root[data-theme="light"] .auth-visual::after{
  background:linear-gradient(90deg,rgba(238,244,255,.1),rgba(238,244,255,.42)),linear-gradient(180deg,transparent 42%,rgba(238,244,255,.86))
}
:root[data-theme="light"] .auth-benefits{
  color:#102348;
  border-color:rgba(16,35,72,.16);
  background:rgba(255,255,255,.82);
}
:root[data-theme="light"] .auth-chip{color:#173b79;background:rgba(43,108,255,.08);border-color:rgba(43,108,255,.16)}
@media(max-width:980px){
  .auth-page{grid-template-columns:1fr}
  .auth-visual{order:-1;min-height:320px;border-left:0;border-bottom:1px solid var(--auth-line)}
  .auth-form-side{padding:22px}
}
@media(max-width:620px){
  .field-grid.two{grid-template-columns:1fr}
  .auth-card{padding:20px}
  .auth-benefits{padding:16px}
}
