.loader {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  animation: l1 1s infinite;
}

@keyframes l1 {
    100% {box-shadow: 0 0 0 30px #0000}
}

/* Page layout */
html,body{
  height:100%;
  margin:0;
  font-family:Segoe UI, Roboto, Arial, sans-serif;
  color:#fff;
}
body{
  background-color:#111;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* blurred background layer uses CSS variable --bg-image set from JS */
body{
  --bg-image: none;
  background-color:#111;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image: var(--bg-image);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter: blur(8px) brightness(.65) saturate(1.05);
  transform: scale(1.05);
  z-index:0;
}

#overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.45);
  z-index:70;
}

#content.hidden{display:none}
#content{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:60;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding:28px 36px;
  border-radius:14px;
  text-align:center;
  max-width:420px;
  width:90%;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px) saturate(1.05);
}


h1{margin:0 0 8px 0;font-size:22px;letter-spacing:0.2px}
p{margin:0 0 16px 0;color:#e6e6e6;opacity:0.9}


input[type="text"]{
  width:100%;
  padding:12px 14px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.02);
  color:#fff;
  margin-bottom:12px;
  box-sizing:border-box;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

input[type="text"]:focus{
  outline: none;
  border-color: rgba(11,132,255,0.9);
  box-shadow: 0 6px 18px rgba(11,132,255,0.08);
  transform: translateY(-1px);
}

button{
  width:100%;
  padding:12px 14px;
  border-radius:9px;
  border:none;
  background: linear-gradient(90deg,#0b84ff,#0066d6);
  color:#fff;
  cursor:pointer;
  font-weight:700;
  letter-spacing:0.3px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

button:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(11,132,255,0.12)}

.error{color:#ff7b7b;margin-bottom:12px}

.error{color:#ff7b7b;margin-bottom:12px}

@media (min-width:700px){
  .card{width:420px}
}
