:root{
  --auth-blue:#4c78a8;
  --auth-blue-dark:#335b8a;
  --auth-ink:#202e3c;
  --auth-muted:#66717d;
  --auth-line:#dfe6ed;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--auth-ink);
  background:#f6f8fb;
}

.auth-page{
  width:100%;
  max-width:none!important;
  min-height:calc(100vh - 65px);
  margin:0!important;
  padding:58px max(24px,calc((100vw - var(--site-width,1304px))/2));
  display:grid;
  align-items:center;
}

.auth-layout{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:clamp(56px,8vw,116px);
  align-items:center;
}

.auth-page--register{
  align-items:start;
}

.auth-page--login{
  justify-items:center;
}

.auth-page.auth-page--login > .auth-card{
  max-width:390px;
}

.auth-page--login .auth-card h1{
  margin-bottom:22px;
}

.auth-layout--register{
  grid-template-columns:minmax(0,1fr) minmax(360px,430px);
  gap:clamp(28px,4vw,56px);
  align-items:start;
}

.auth-intro{
  min-width:0;
}

.auth-kicker{
  margin:0 0 14px;
  color:var(--auth-blue);
  font-size:13px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.auth-title{
  max-width:720px;
  margin:0;
  color:var(--auth-ink);
  font-size:clamp(38px,3.7vw,57px);
  line-height:1.07;
  letter-spacing:-.035em;
  font-weight:800;
}

.auth-title em{
  color:inherit;
  font-style:normal;
}

.auth-subtitle{
  max-width:660px;
  margin:19px 0 0;
  color:var(--auth-muted);
  font-size:17px;
  line-height:1.55;
}

.auth-feature-showcase{
  max-width:850px;
  margin-top:28px;
}

.auth-feature-head{
  margin:0 0 14px;
}

.auth-feature-head h2{
  margin:0 0 5px;
  color:#263a50;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.auth-feature-head p{
  max-width:620px;
  margin:0;
  color:#697684;
  font-size:14px;
  line-height:1.5;
}

.auth-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.auth-feature-card{
  min-width:0;
  border:1px solid #dce7f2;
  border-radius:14px;
  padding:13px 14px 14px;
  background:rgba(255,255,255,.82);
  box-shadow:0 10px 22px rgba(43,76,111,.055);
}

.auth-feature-label{
  display:inline-block;
  margin-bottom:7px;
  border-radius:999px;
  padding:3px 8px;
  background:#edf4fb;
  color:#3f6d9b;
  font-size:10px;
  line-height:1.25;
  font-weight:850;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.auth-feature-card h3{
  margin:0 0 5px;
  color:#25384c;
  font-size:15px;
  line-height:1.28;
  letter-spacing:-.01em;
}

.auth-feature-card p{
  margin:0;
  color:#687483;
  font-size:12px;
  line-height:1.48;
}

.auth-directions{
  max-width:760px;
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid #ccd8e3;
  border-bottom:1px solid #ccd8e3;
}

.auth-direction{
  padding:23px 28px 24px 0;
}

.auth-direction + .auth-direction{
  padding-left:28px;
  border-left:1px solid #ccd8e3;
}

.auth-direction h2{
  margin:0 0 9px;
  color:#2a3b4c;
  font-size:25px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.auth-direction p{
  margin:0;
  color:#6b7784;
  font-size:14px;
  line-height:1.55;
}

.auth-account-line{
  max-width:760px;
  display:grid;
  grid-template-columns:115px minmax(0,1fr);
  gap:15px;
  margin-top:20px;
  color:#52677b;
  font-size:13px;
  line-height:1.5;
}

.auth-account-line strong{
  color:#33495e;
  font-weight:800;
}

.auth-account-line span{
  color:#6c7885;
}

.auth-card{
  border:1px solid #d6e0ea;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(42,67,92,.09);
  padding:31px;
}

.auth-layout--register .auth-card{
  position:sticky;
  top:88px;
}

.auth-page > .auth-card{
  width:100%;
  max-width:480px;
  margin:auto;
}

.auth-card__kicker{
  margin:0 0 7px!important;
  color:var(--auth-blue)!important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}

.auth-card h1,
.auth-card h2{
  margin:0 0 7px;
  color:var(--auth-ink);
  font-size:27px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.auth-card > p,
.auth-card__lead{
  margin:0 0 23px;
  color:var(--auth-muted);
  line-height:1.5;
}

.auth-form{
  display:grid;
  gap:15px;
}

.auth-field{
  display:grid;
  gap:7px;
}

.auth-field label{
  color:#4d5d6d;
  font-size:13px;
  font-weight:750;
}

.auth-field input{
  width:100%;
  min-height:49px;
  border:1px solid #cfd9e3;
  border-radius:9px;
  background:#fff;
  color:#202e3c;
  font:inherit;
  font-size:15px;
  padding:12px 13px;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}

.auth-field input::placeholder{
  color:#a0a9b3;
}

.auth-field input:focus{
  border-color:var(--auth-blue);
  box-shadow:0 0 0 3px rgba(76,120,168,.11);
}

.auth-submit{
  min-height:49px;
  margin-top:4px;
  border:1px solid var(--auth-blue-dark);
  border-radius:9px;
  background:var(--auth-blue-dark);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:background .15s ease;
}

.auth-submit:hover{
  background:#2d517a;
}

.auth-links{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:9px 13px;
  margin-top:18px;
  font-size:13px;
  font-weight:750;
}

.auth-links a{
  color:var(--auth-blue-dark);
  text-decoration:none;
}

.auth-links a:hover{
  text-decoration:underline;
}

.auth-alert,
.auth-success{
  margin:0 0 16px;
  padding:12px 13px;
  border-radius:9px;
  font-size:14px;
  line-height:1.45;
}

.auth-alert{
  border:1px solid #f0c7c7;
  background:#fff7f7;
  color:#8a2d2d;
}

.auth-success{
  border:1px solid #bbdfc8;
  background:#f0fff5;
  color:#24623a;
}

.auth-note{
  margin-top:21px;
  padding-top:17px;
  display:flex;
  align-items:flex-start;
  gap:8px;
  border-top:1px solid #e6ebf0;
  color:#7a8490;
  font-size:12px;
  line-height:1.45;
}

.auth-note > span{
  width:17px;
  height:17px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#edf2f7;
  color:#5d7895;
  font-size:10px;
  font-weight:800;
}

.auth-note p{
  margin:0;
}

@media (max-width:980px){
  .auth-page{
    padding:43px 24px 52px;
  }

  .auth-layout{
    grid-template-columns:minmax(0,1fr) 360px;
    gap:40px;
  }

  .auth-layout--register{
    grid-template-columns:minmax(0,1fr) 370px;
    gap:28px;
  }

  .auth-feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:800px){
  .auth-page{
    align-items:start;
  }

  .auth-layout{
    max-width:620px;
    margin:0 auto;
    grid-template-columns:1fr;
    gap:32px;
  }

  .auth-layout--register .auth-card{
    position:static;
    order:1;
    margin:0 auto;
  }

  .auth-layout--register .auth-intro{
    order:2;
  }

  .auth-title{
    font-size:39px;
  }

  .auth-card{
    width:100%;
    max-width:480px;
  }

  .auth-feature-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .auth-page{
    padding:29px 16px 40px;
  }

  .auth-page.auth-page--login{
    min-height:auto;
    padding:12px 16px max(28px,env(safe-area-inset-bottom));
  }

  .auth-title{
    font-size:32px;
  }

  .auth-subtitle{
    margin-top:14px;
    font-size:15px;
  }

  .auth-directions{
    margin-top:25px;
    grid-template-columns:1fr;
  }

  .auth-direction{
    padding:16px 0 17px;
  }

  .auth-direction + .auth-direction{
    padding:16px 0 17px;
    border-top:1px solid #ccd8e3;
    border-left:0;
  }

  .auth-account-line{
    grid-template-columns:1fr;
    gap:2px;
  }

  .auth-card{
    padding:24px 20px;
    border-radius:14px;
  }

  .auth-page--login .auth-card{
    padding:20px;
  }

  .auth-card h2{
    font-size:24px;
  }

  .auth-links{
    flex-direction:column;
  }
}

@media (prefers-reduced-motion:reduce){
  .auth-submit,
  .auth-field input{
    transition:none;
  }
}
