:root{
  --bg0:#07030f;
  --bg1:#0a0416;
  --text:#f7f1ff;
  --muted:#cbb7ff;
  --accent:#7c3aed;
  --accent2:#a78bfa;
  --border:rgba(167,139,250,.22);
  --shadow: 0 20px 70px rgba(0,0,0,.6);
  --radius:18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(900px 520px at 80% 15%, rgba(167,139,250,.18), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:22px 16px 42px;
}

.topbar{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(167,139,250,.22);
  background: rgba(15,7,34,.55);
  box-shadow: 0 14px 40px rgba(124,58,237,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}

.brandText h1{
  font-size:16px;
  margin:0;
  letter-spacing:.6px;
}
.brandText p{
  margin:2px 0 0;
  color:rgba(203,183,255,.85);
  font-size:12px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(15,7,34,.92), rgba(15,7,34,.72));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  overflow:hidden;
}

.h{
  margin:0 0 10px;
  font-size:16px;
}

.small{
  font-size:12px;
  color:rgba(203,183,255,.9);
  line-height:1.45;
}

.btn{
  appearance:none;
  border:1px solid rgba(167,139,250,.35);
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(167,139,250,1));
  color:white;
  padding:11px 14px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 30px rgba(124,58,237,.18);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: rgba(18,8,42,.75);
  box-shadow:none;
}

label{
  display:block;
  margin:10px 0 6px;
  color:rgba(203,183,255,.9);
  font-size:12px;
}

input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(167,139,250,.22);
  background: rgba(7,3,15,.45);
  color:var(--text);
  outline:none;
}
input:focus{ border-color: rgba(167,139,250,.65); }

.row{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.row > *{ flex:1; }

.msg{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(167,139,250,.22);
  background: rgba(18,8,42,.55);
  color: rgba(203,183,255,.95);
  display:none;
  white-space:pre-wrap;
}
.msg.ok{
  border-color: rgba(45,212,191,.35);
  color: rgba(215,255,248,.95);
}
.msg.err{
  border-color: rgba(255,77,109,.35);
  color: rgba(255,210,220,.98);
}

.footer{
  margin-top:14px;
  color:rgba(203,183,255,.72);
  font-size:12px;
}
