*{box-sizing:border-box}
:root{
  --bg:#f5f7fb;
  --surface:#fff;
  --border:#e4e7ec;
  --border-strong:#d0d5dd;
  --text:#182230;
  --muted:#667085;
  --muted-2:#98a2b3;
  --primary:#3157d5;
  --primary-hover:#2948bc;
  --primary-soft:#eef2ff;
  --success:#12b76a;
  --dark:#182230;
}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}
.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.auth-shell{
  width:min(1180px,100%);
  min-height:680px;
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(440px,1.1fr);
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 18px 45px rgba(16,24,40,.08);
}
.auth-side{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:38px 38px 34px;
  background:linear-gradient(180deg,#182230 0%,#121a26 100%);
  color:#fff;
}
.auth-brand{
  font-size:21px;
  line-height:1;
  font-weight:800;
  letter-spacing:.06em;
}
.auth-brand-sub{
  margin-top:6px;
  color:#98a2b3;
  font-size:12px;
}
.auth-side-copy{
  margin:auto 0 34px;
  max-width:470px;
}
.auth-eyebrow{
  display:inline-block;
  margin-bottom:14px;
  color:#8ea5ff;
  font-size:11px;
  font-weight:750;
  letter-spacing:.09em;
}
.auth-side h1{
  margin:0;
  font-size:42px;
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:690;
}
.auth-side-copy p{
  margin:18px 0 0;
  max-width:430px;
  color:#cfd6e2;
  font-size:15px;
  line-height:1.6;
}
.auth-side-list{
  display:grid;
  gap:11px;
  margin-bottom:28px;
}
.auth-side-list div{
  display:flex;
  align-items:center;
  gap:11px;
  color:#d9dfE8;
  font-size:13px;
}
.auth-side-list span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  color:#8ea5ff;
  font-size:10px;
  font-weight:750;
}
.auth-site-link{
  align-self:flex-start;
  color:#fff;
  font-size:13px;
  font-weight:650;
  text-decoration:none;
}
.auth-site-link:hover{color:#aebdff}
.auth-main{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 42px;
  background:#f9fafb;
}
.auth-card{
  width:min(430px,100%);
  padding:30px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.auth-card-head{margin-bottom:24px}
.auth-card-kicker{
  margin-bottom:8px;
  color:var(--primary);
  font-size:11px;
  font-weight:750;
  letter-spacing:.07em;
}
.auth-card h2{
  margin:0;
  color:var(--text);
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:680;
}
.auth-card-head p{
  margin:9px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.login-form{
  display:grid;
  gap:16px;
}
label{
  display:grid;
  gap:6px;
  color:#475467;
  font-size:12.5px;
  font-weight:620;
}
input{
  width:100%;
  height:42px;
  padding:0 12px;
  border:1px solid var(--border-strong);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:13px;
  outline:none;
}
input::placeholder{color:#98a2b3}
input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(49,87,213,.10);
}
button{
  height:42px;
  margin-top:2px;
  border:1px solid var(--primary);
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  font-size:13.5px;
  font-weight:680;
  cursor:pointer;
}
button:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.register{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:12.5px;
}
.register a{
  color:var(--primary);
  font-weight:680;
  text-decoration:none;
}
.register a:hover{text-decoration:underline}
.status{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #eaecf0;
  color:var(--muted-2);
  font-size:11.5px;
}
.status-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--success);
}
.auth-error{
  margin:-4px 0 16px;
  padding:10px 12px;
  border:1px solid #fecdca;
  border-radius:8px;
  background:#fef3f2;
  color:#b42318;
  font-size:12px;
}
@media(max-width:900px){
  .auth-shell{grid-template-columns:1fr;min-height:auto}
  .auth-side{padding:28px}
  .auth-side-copy{margin:38px 0 28px}
  .auth-side h1{font-size:34px}
  .auth-side-list{display:none}
  .auth-main{padding:28px 20px}
}
@media(max-width:560px){
  .auth-page{padding:0}
  .auth-shell{border:0;border-radius:0;box-shadow:none}
  .auth-side{padding:24px 20px}
  .auth-side h1{font-size:30px}
  .auth-main{padding:22px 16px 30px}
  .auth-card{padding:22px}
  .auth-card h2{font-size:24px}
}

/* Registration layout refinement */
.auth-shell-register{
  width:min(1120px,100%);
  min-height:640px;
  grid-template-columns:minmax(380px,.82fr) minmax(560px,1.18fr);
}
.auth-side-register{
  padding:36px 34px 32px;
}
.auth-side-copy-register{
  margin:76px 0 34px;
}
.auth-side-register h1{
  font-size:38px;
  line-height:1.08;
}
.auth-main-register{
  padding:44px 56px;
}
.auth-card-register{
  width:min(560px,100%);
  padding:32px 34px;
  border-radius:12px;
}
.auth-card-register .auth-card-head{
  margin-bottom:22px;
}
.auth-card-register .auth-card-head p{
  max-width:460px;
}
.register-form{
  gap:14px;
}
.register-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.auth-card-register input{
  height:44px;
}
.auth-card-register button{
  height:44px;
  margin-top:4px;
}
.auth-form-note{
  margin-top:-4px;
  color:#98a2b3;
  font-size:11.5px;
  line-height:1.35;
}
@media(max-width:980px){
  .auth-shell-register{
    grid-template-columns:1fr;
    width:min(720px,100%);
  }
  .auth-side-register{
    padding:28px;
  }
  .auth-side-copy-register{
    margin:32px 0 24px;
  }
  .auth-main-register{
    padding:30px 28px;
  }
}
@media(max-width:620px){
  .auth-main-register{
    padding:18px 14px 28px;
  }
  .auth-card-register{
    padding:22px 18px;
  }
  .register-grid{
    grid-template-columns:1fr;
  }
  .auth-side-register h1{
    font-size:30px;
  }
}

/* Compact registration window — 25% desktop viewport target */
.register-page-compact{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 20px;
  background:#f5f7fb;
}
.register-window{
  width:clamp(390px,25vw,460px);
  padding:24px 24px 22px;
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 30px rgba(16,24,40,.08);
}
.register-brand-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.register-brand{
  color:#182230;
  font-size:16px;
  line-height:1;
  font-weight:800;
  letter-spacing:.055em;
}
.register-brand-sub{
  margin-top:5px;
  color:#98a2b3;
  font-size:10.5px;
}
.register-back-link{
  color:#667085;
  font-size:11.5px;
  font-weight:600;
  text-decoration:none;
}
.register-back-link:hover{color:#3157d5}
.register-head{margin-bottom:20px}
.register-kicker{
  margin-bottom:7px;
  color:#3157d5;
  font-size:10.5px;
  font-weight:750;
  letter-spacing:.08em;
}
.register-window h1{
  margin:0;
  color:#182230;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:690;
}
.register-head p{
  margin:8px 0 0;
  color:#667085;
  font-size:12.5px;
  line-height:1.5;
}
.register-form-compact{
  display:grid;
  gap:12px;
}
.register-form-compact label{
  display:grid;
  gap:5px;
  color:#475467;
  font-size:11.5px;
  font-weight:620;
}
.register-form-compact input{
  width:100%;
  height:40px;
  padding:0 11px;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  color:#182230;
  font-size:12.5px;
  outline:none;
}
.register-form-compact input::placeholder{color:#98a2b3}
.register-form-compact input:focus{
  border-color:#3157d5;
  box-shadow:0 0 0 3px rgba(49,87,213,.10);
}
.register-note{
  margin-top:-5px;
  color:#98a2b3;
  font-size:10.5px;
}
.register-form-compact button{
  width:100%;
  height:41px;
  margin-top:2px;
  border:1px solid #3157d5;
  border-radius:8px;
  background:#3157d5;
  color:#fff;
  font-size:12.5px;
  font-weight:680;
  cursor:pointer;
}
.register-form-compact button:hover{
  border-color:#2948bc;
  background:#2948bc;
}
.register-login-link{
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid #eaecf0;
  text-align:center;
  color:#667085;
  font-size:11.5px;
}
.register-login-link a{
  color:#3157d5;
  font-weight:680;
  text-decoration:none;
}
.register-login-link a:hover{text-decoration:underline}
@media(max-width:560px){
  .register-page-compact{padding:16px}
  .register-window{
    width:100%;
    max-width:430px;
    padding:22px 18px 20px;
  }
}

.kontur-trial-pill{
  position:fixed; right:18px; bottom:18px; z-index:9999;
  max-width:390px; padding:9px 12px; border:1px solid #d9e2ff;
  border-radius:9px; background:#f4f7ff; color:#2948bc;
  box-shadow:0 3px 12px rgba(16,24,40,.08); font-size:12px; font-weight:650;
}
