:root{
  --bg:#0f1724;
  --bg-2:#162033;
  --panel:#1b263b;
  --panel-2:#202d46;
  --border:#2d3b57;
  --text:#e8eefc;
  --text-soft:#9fb0d3;
  --primary:#2f6fed;
  --primary-hover:#4280f4;
  --success:#19c37d;
  --danger:#e35d6a;
  --input:#111a2b;
  --shadow:0 20px 50px rgba(0,0,0,.35);
  --radius:18px;
}
*{
  box-sizing:border-box
}
html,body{
  margin:0;
  padding:0;
  width:100%;
  height:100%
}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left,rgba(47,111,237,.18),transparent 30%),
    radial-gradient(circle at bottom right,rgba(25,195,125,.08),transparent 25%),
    linear-gradient(180deg,var(--bg),#0b1220);
  color:var(--text);
}
.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}
.login-shell{
  width:min(1180px,100%);
  min-height:680px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  background:rgba(17,26,43,.88);
  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}
.login-brand{
  position:relative;
  padding:42px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01)),
    linear-gradient(135deg,#132038 0%,#10192b 60%,#0d1524 100%);
  border-right:1px solid rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:28px;
}
.brand-top{
  display:flex;
  align-items:center;
  gap:16px
}
.brand-logo{
  width:58px;
  height:58px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--primary),#1d4fb7);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  color:#fff;
  box-shadow:0 12px 28px rgba(47,111,237,.25);
  flex:0 0 auto;
}
.brand-title h1{
  margin:0;
  font-size:28px;
  line-height:1.1
}
.brand-title p{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:14px
}
.brand-hero h2{
  margin:0 0 14px;
  font-size:42px;
  line-height:1.08;
  max-width:560px;
}
.brand-hero p{
  margin:0;
  max-width:560px;
  color:var(--text-soft);
  font-size:17px;
  line-height:1.65;
}
.brand-features{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:6px;
}
.feature-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px 18px;
}
.feature-card strong{
  display:block;
  margin-bottom:8px;
  font-size:15px
}
.feature-card span{
  display:block;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.55
}
.brand-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--text-soft);
  font-size:13px;
}
.brand-footer a{
  color:#c9d8ff;
  text-decoration:none
}
.brand-footer a:hover{
  text-decoration:underline
}

.login-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px;
  background:linear-gradient(180deg,#172235,#121b2b);
}
.login-card{
  width:min(430px,100%);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:24px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.login-card-header{
  margin-bottom:24px
}
.login-card-header h3{
  margin:0 0 8px;
  font-size:30px
}
.login-card-header p{
  margin:0;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.55
}
.login-form{
  display:flex;
  flex-direction:column;
  gap:18px
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px
}
.field label{
  font-size:14px;
  font-weight:600;
  color:#dfe7fb
}
.field input{
  width:100%;
  height:48px;
  background:var(--input);
  border:1px solid var(--border);
  border-radius:14px;
  padding:0 14px;
  color:var(--text);
  font-size:15px;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.field input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(47,111,237,.15);
  background:#0f1a2d;
}
.password-wrap{
  position:relative
}
.password-wrap input{
  padding-right:54px
}
.toggle-password{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  height:34px;
  min-width:34px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text-soft);
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}
.toggle-password:hover{
  background:rgba(255,255,255,.05);
  color:var(--text)
}
.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:-2px;
}
.check{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text-soft);
  font-size:14px;
  user-select:none;
}
.check input{
  accent-color:var(--primary)
}
.form-link{
  color:#c9d8ff;
  text-decoration:none;
  font-size:14px;
}
.form-link:hover{
  text-decoration:underline
}
.login-submit{
  height:50px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),#2257c7);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease,filter .2s ease;
  box-shadow:0 12px 24px rgba(47,111,237,.22);
}
.login-submit:hover{
  filter:brightness(1.05)
}
.login-submit:active{
  transform:translateY(1px)
}
.login-message{
  display:none;
  padding:12px 14px;
  border-radius:12px;
  font-size:14px;
  line-height:1.45;
}
.login-message.is-error{
  display:block;
  background:rgba(227,93,106,.12);
  border:1px solid rgba(227,93,106,.25);
  color:#ffb7bf;
}
.login-meta{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
}
.login-meta strong{
  color:var(--text)
}
@media (max-width:980px){
  .login-shell{
    grid-template-columns:1fr
  }
  .login-brand{
    padding:30px
  }
  .login-brand h2{
    font-size:34px
  }
  .login-panel{
    padding:30px
  }
}
@media (max-width:640px){
  .login-page{
    padding:16px
  }
  .login-shell{
    min-height:auto;
    border-radius:22px
  }
  .login-brand,.login-panel{
    padding:22px
  }
  .brand-hero h2{
    font-size:28px
  }
  .brand-features{
    grid-template-columns:1fr
  }
  .login-card{
    padding:22px;
    border-radius:20px
  }
  .form-row{
    flex-direction:column;
    align-items:flex-start
  }
}