.gate{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:34px 34px 150px;
  color:#0b2c86;
  background:
    radial-gradient(circle at 8% 28%,rgba(21,155,221,.14),transparent 22rem),
    radial-gradient(circle at 88% 16%,rgba(255,255,255,.96),transparent 28rem),
    linear-gradient(135deg,#dff5ff 0%,#ffffff 48%,#e8f8ff 100%);
}
.gate::before{
  content:"";
  position:absolute;
  z-index:-2;
  width:430px;
  height:620px;
  left:-155px;
  top:70px;
  opacity:.12;
  transform:rotate(-9deg);
  border-radius:48% 52% 42% 58%;
  background:
    radial-gradient(ellipse at 48% 14%,transparent 0 8%,#058ed4 8.5% 12%,transparent 12.5%),
    repeating-radial-gradient(ellipse at 50% 82%,transparent 0 28px,rgba(5,142,212,.85) 30px 39px,transparent 41px 57px);
}
.gate::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-8%;
  right:-8%;
  bottom:-145px;
  height:290px;
  transform:rotate(-3deg);
  border-radius:50% 48% 0 0 / 28% 32% 0 0;
  background:
    linear-gradient(180deg,
      #d6f4ff 0 13%,
      #79d3f4 13% 27%,
      #23a9e2 27% 48%,
      #167fc9 48% 63%,
      #35c3a4 63% 76%,
      #08a7d6 76% 100%);
  box-shadow:0 -12px 0 rgba(255,255,255,.58),0 -25px 0 rgba(114,215,242,.28);
}
.login-shell{
  position:relative;
  z-index:2;
  direction:ltr;
  width:min(1040px,100%);
  display:grid;
  grid-template-columns:minmax(350px,1fr) 1px minmax(350px,1fr);
  align-items:center;
  gap:42px;
  padding:18px 28px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  animation:rise .45s ease both;
}
.login-brand-panel{
  grid-column:3;
  grid-row:1;
  direction:rtl;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.login-mark{
  width:min(360px,100%);
  height:360px;
  margin:0;
  border:0;
  border-radius:0;
  background-color:transparent;
  background-size:100%;
  background-position:center;
  box-shadow:none;
}
.login-separator{
  grid-column:2;
  grid-row:1;
  width:1px;
  height:420px;
  align-self:center;
  background:linear-gradient(180deg,transparent,#79aee2 10%,#79aee2 90%,transparent);
}
.login-content{
  grid-column:1;
  grid-row:1;
  direction:rtl;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
}
.login-heading{
  text-align:center;
  margin-bottom:20px;
}
.login-shell .login-heading h1{
  display:inline-block;
  margin:0;
  padding:0 8px 9px;
  border-bottom:2px solid #8ec7ed;
  color:#0a2f94;
  font-size:clamp(42px,4.7vw,64px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.045em;
}
.login-tagline{
  margin:10px 0 0;
  color:#345c8d;
  font-size:20px;
  font-weight:700;
}
.login-tagline span{
  padding:0 7px;
  color:#087cc6;
}
.login-card{
  width:100%;
  padding:22px 26px 20px;
  text-align:center;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.96);
  border-radius:20px;
  box-shadow:0 18px 45px rgba(10,75,139,.13);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.login-lock{
  width:54px;
  height:54px;
  margin:0 auto 7px;
  display:grid;
  place-items:center;
  color:#0a54ae;
  border-radius:50%;
  background:linear-gradient(145deg,#d7f1ff,#b9dcff);
}
.login-lock svg{width:28px;height:28px;stroke-width:2}
.login-card h2{
  margin:0;
  color:#082e8d;
  font-size:30px;
  font-weight:900;
  letter-spacing:-.03em;
}
.login-card>p{
  margin:3px 0 16px;
  color:#5c7394;
  font-size:16px;
  font-weight:600;
}
.login-card form{margin:0}
.login-card .password-wrap{position:relative}
.login-card .password-wrap input{
  width:100%;
  min-height:54px;
  padding:11px 48px 11px 48px;
  direction:rtl;
  text-align:right;
  letter-spacing:0;
  color:#123e78;
  font-size:18px;
  font-weight:700;
  border:2px solid #8fd0ff;
  border-radius:11px;
  background:rgba(255,255,255,.72);
  outline:none;
}
.login-card .password-wrap input::placeholder{
  color:#7d8fa8;
  font-weight:600;
  opacity:1;
}
.login-card .password-wrap input:focus{
  border-color:#168bd6;
  box-shadow:0 0 0 4px rgba(22,139,214,.12);
}
.password-leading{
  position:absolute;
  z-index:2;
  top:14px;
  right:14px;
  color:#3f6f9d;
  pointer-events:none;
}
.password-leading svg{width:25px;height:25px}
.login-card .icon-button{
  left:7px;
  top:7px;
  width:40px;
  height:40px;
  color:#55799b;
}
.login-card .login-button{
  width:100%;
  min-height:58px;
  margin-top:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  border:0;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,#0752ad,#0a97e4);
  box-shadow:0 9px 18px rgba(6,94,179,.18);
  font-size:22px;
  font-weight:900;
}
.login-card .login-button::after{
  content:"↪";
  font-size:28px;
  line-height:1;
  transform:rotate(180deg);
}
.login-card .login-button:hover{
  background:linear-gradient(135deg,#063f92,#0787d3);
}
.login-card .login-button:disabled{
  cursor:wait;
  opacity:.72;
}
.login-card .form-error{
  min-height:19px;
  margin-top:6px;
  font-size:13px;
}
.login-motto{
  position:absolute;
  z-index:2;
  left:5%;
  bottom:35px;
  margin:0;
  color:#fff;
  font-size:18px;
  font-weight:700;
  line-height:1.55;
  text-align:right;
  text-shadow:0 2px 8px rgba(0,70,120,.25);
}
@media(max-width:900px){
  .gate{padding:24px 18px 145px}
  .login-shell{
    grid-template-columns:minmax(290px,.85fr) 1px minmax(330px,1.15fr);
    gap:22px;
    padding:10px;
  }
  .login-mark{height:300px}
  .login-separator{height:380px}
  .login-shell .login-heading h1{font-size:44px}
}
@media(max-width:720px){
  .gate{
    place-items:start center;
    min-height:100svh;
    padding:20px 14px 125px;
    overflow:auto;
  }
  .gate::before{width:260px;height:400px;left:-130px;top:20px}
  .gate::after{position:fixed;height:190px;bottom:-105px}
  .login-shell{
    direction:rtl;
    width:min(480px,100%);
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:0;
  }
  .login-brand-panel{order:1}
  .login-mark{
    width:210px;
    height:210px;
    background-size:100%;
  }
  .login-separator{display:none}
  .login-content{order:2}
  .login-heading{margin-bottom:13px}
  .login-shell .login-heading h1{font-size:38px;padding-bottom:7px}
  .login-tagline{font-size:16px;margin-top:7px}
  .login-card{padding:18px 17px 14px;border-radius:18px}
  .login-lock{width:48px;height:48px}
  .login-card h2{font-size:26px}
  .login-card>p{font-size:14px;margin-bottom:13px}
  .login-card .password-wrap input{min-height:52px;font-size:16px}
  .login-card .login-button{min-height:54px;font-size:20px}
  .login-motto{display:none}
}
@media(max-width:390px){
  .gate{padding-top:10px}
  .login-mark{width:178px;height:178px}
  .login-shell .login-heading h1{font-size:34px}
  .login-card{padding:15px 14px 11px}
}
@media print{
  .gate{display:none!important}
}
