:root{
  --bg:#070A10;
  --bg2:#090D16;
  --panel:#0B1020CC;
  --border:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --accent:#56A7FF;
  --accent2:#8B5CFF;
  --ok:#3DFFB2;
  --bad:#FF5470;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(86,167,255,.08), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(139,92,255,.08), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family:var(--sans);
  overflow:hidden;
}

.login{
  position:relative;
  height:100%;
  display:grid;
  place-items:center;
  padding:32px;
}

.panel{
  position:relative;
  width:min(420px, 100%);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter: blur(14px);
  padding:22px 22px 16px;
  z-index:2;
  transform: translateY(10px);
  opacity:0;
  animation: in .6s ease forwards;
}

@keyframes in{
  to{transform:translateY(0); opacity:1}
}

.header{
  display:flex;
  gap:14px;
  align-items:center;
  padding:6px 4px 14px;
  border-bottom:1px solid var(--border);
}

.mark{
  width:44px;height:44px;border-radius:14px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, rgba(86,167,255,.85), rgba(139,92,255,.85));
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 18px 50px rgba(86,167,255,.18);
}

.titles h1{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.titles p{
  margin:2px 0 0;
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
}

.form{
  padding:16px 4px 10px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field{display:flex;flex-direction:column;gap:6px}
.label{
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
}

.input{
  width:100%;
  background: rgba(0,0,0,.25);
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--text);
  padding:12px 12px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.input:focus{
  border-color: rgba(86,167,255,.55);
  box-shadow: 0 0 0 4px rgba(86,167,255,.12);
}

.btn{
  margin-top:6px;
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120px 60px at 20% 20%, rgba(255,255,255,.18), transparent 65%),
    linear-gradient(135deg, rgba(86,167,255,.92), rgba(139,92,255,.92));
  color:#07101B;
  font-weight:700;
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
  position:relative;
  transition: transform .08s ease, filter .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn:hover{filter:brightness(1.02)}
.btn:active{transform: translateY(1px)}
.btn[disabled]{opacity:.7; cursor:not-allowed}

.btnSpinner{
  width:14px;height:14px;
  border:2px solid rgba(0,0,0,.25);
  border-top-color: rgba(0,0,0,.65);
  border-radius:50%;
  display:none;
  animation: spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.status{
  min-height:18px;
  font-family:var(--mono);
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.status.bad{color: rgba(255,84,112,.95)}
.status.ok{color: rgba(61,255,178,.95)}

.foot{
  padding:10px 4px 4px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11px;
}

.bg{position:absolute; inset:0; overflow:hidden; z-index:1}
.grid{
  position:absolute; inset:-40%;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotate(12deg);
  opacity:.16;
  filter: blur(.2px);
}

.glow{
  position:absolute;
  width:700px;height:700px;
  border-radius:50%;
  filter: blur(60px);
  opacity:.18;
}
.g1{left:-240px; top:-260px; background: rgba(86,167,255,.9)}
.g2{right:-280px; top:-180px; background: rgba(139,92,255,.9)}
.g3{left:20%; bottom:-420px; background: rgba(61,255,178,.7)}

@media (max-width:520px){
  body{overflow:auto}
  .login{padding:18px}
}
