:root{
  --card: rgba(10,12,18,.92);
  --card2: rgba(6,7,10,.90);
  --text:#fff;
  --muted:#b8bfd2;
  --red:#ff0000;
  --red2:#b00000;
  --input:#eef4ff;
  --border: rgba(255,255,255,.08);
  --shadow: 0 18px 80px rgba(0,0,0,.75);
  --radius: 26px;
  --maxCard: 540px;
  --maxForm: 420px;
}

*{box-sizing:border-box}
body.page{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(255,0,0,.35), transparent 60%),
    radial-gradient(700px 420px at 50% 0%, rgba(160,0,0,.18), transparent 60%),
    radial-gradient(1200px 900px at 50% 100%, rgba(0,0,0,.95), rgba(0,0,0,1));
}

.card{
  width:min(var(--maxCard), 100%);
  border-radius:var(--radius);
  padding:30px 26px 22px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:-160px -140px auto -140px;
  height:320px;
  background: radial-gradient(circle at 50% 50%, rgba(255,0,0,.34), transparent 70%);
  filter: blur(10px);
  pointer-events:none;
}

.logo{
  width:120px;height:120px;border-radius:999px;
  margin:0 auto 12px;
  overflow:hidden;
  border:2px solid rgba(255,0,0,.35);
  box-shadow:0 0 0 8px rgba(255,0,0,.10),0 0 28px rgba(255,0,0,.35);
  background: rgba(255,0,0,.08);
  position:relative; z-index:1;
}
.logo img{width:100%;height:100%;object-fit:cover;display:block;}

.title{
  margin:0 0 18px;
  text-align:center;
  font-size:40px;
  font-weight:900;
  letter-spacing:.4px;
  text-shadow: 0 8px 22px rgba(0,0,0,.65);
  position:relative; z-index:1;
}

.form{
  width:85%;
  max-width:var(--maxForm);
  margin:0 auto;
  position:relative; z-index:1;
}

.field{margin:14px 0}
.label{display:block;margin:0 0 8px;font-size:14px;color:var(--muted);}

.input{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: var(--input);
  font-size:16px;
  outline:none;
  color:#0b0e14;
}
.input:focus{border-color: rgba(255,0,0,.55);box-shadow: 0 0 0 4px rgba(255,0,0,.14);}

.btn{
  width:100%;
  margin-top:14px;
  padding:14px 14px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  color:#fff;
  font-size:16px;
  font-weight:900;
  letter-spacing:.3px;
  background: linear-gradient(90deg, var(--red2), var(--red));
  box-shadow: 0 14px 28px rgba(255,0,0,.22);
}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform: translateY(1px)}
.btn.secondary{
  background: rgba(255,255,255,.10);
  box-shadow:none;
  border:1px solid rgba(255,255,255,.14);
}

.links{
  text-align:center;
  margin-top:14px;
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  position:relative; z-index:1;
}
.links a{color:#cfd5e6;text-decoration:none;font-size:14px;}
.links a:hover{color:#fff;text-decoration:underline}

.msg{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
}
.msg.ok{background:rgba(76,217,100,.12);border:1px solid rgba(76,217,100,.28);color:#d7ffe0;}
.msg.err{background:rgba(255,0,0,.10);border:1px solid rgba(255,0,0,.22);color:#ffd7d7;}

.notice{
  margin-top:18px;
  padding:14px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#d9deea;
  font-size:12.8px;
  line-height:1.45;
  position:relative; z-index:1;
}

.footer{
  margin-top:14px;
  text-align:center;
  color: rgba(255,255,255,.45);
  font-size:12px;
  position:relative; z-index:1;
}

@media (max-width:420px){
  .title{font-size:32px}
  .logo{width:110px;height:110px}
  .card{padding:28px 18px 18px}
}
