:root{
  --bg1:#0b1220;
  --bg2:#0f2a4a;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#5a667a;
  --primary:#6b3fa1;
  --primary2:#3b82f6;
  --border:#e7e9ee;
  --shadow: 0 18px 50px rgba(0,0,0,.20);
  --radius: 16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(1100px 600px at 20% 10%, rgba(107,63,161,.45), transparent 60%),
              radial-gradient(900px 520px at 80% 20%, rgba(59,130,246,.35), transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  padding:24px;
}

.shell{
  width:min(980px, 100%);
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:18px;
}

@media(max-width:900px){
  .shell{grid-template-columns:1fr}
}

.panel{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding:26px;
  color:#fff;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.panel::after{
  content:"";
  position:absolute;
  inset:-60px -60px auto auto;
  width:220px;
  height:220px;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 60%);
  transform: rotate(25deg);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}

.brand .logo{
  width:56px;
  height:56px;
  border-radius:14px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.brand .logo img{width:100%;height:100%;object-fit:cover}

.brand h1{
  font-size:22px;
  margin:0;
  line-height:1.2;
}

.brand p{
  margin:6px 0 0;
  color: rgba(255,255,255,.78);
  font-size:13px;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
}

.card h2{
  margin:0 0 6px;
  color: var(--text);
  font-size:20px;
}

.card .sub{
  margin:0 0 16px;
  color: var(--muted);
  font-size:13px;
}

.field{ margin-top:12px; }
label{
  display:block;
  font-size:12px;
  color:#475569;
  margin-bottom:6px;
}
input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  font-size:14px;
}
input:focus{
  border-color: rgba(107,63,161,.55);
  box-shadow: 0 0 0 4px rgba(107,63,161,.15);
}

.hr{ margin:16px 0; border-top:1px dashed #e8eaf0; }

.btn{
  width:100%;
  margin-top:16px;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}
.btn:hover{opacity:.97}

.note{
  margin-top:12px;
  font-size:12px;
  color:#64748b;
  text-align:center;
}

.alert{
  padding:10px 12px;
  border-radius:12px;
  margin:10px 0 14px;
  font-size:13px;
}
.alert.err{
  background:#ffe7e7;
  border:1px solid #ffbaba;
  color:#a10000;
}

.smallmuted{color:#64748b;font-size:12px;margin-top:6px}

.preview{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f6f7fb;
  border:1px solid #e8eaf0;
  border-radius:12px;
  padding:10px;
  margin-top:10px;
}
.preview img{
  width:44px;height:44px;border-radius:12px;object-fit:cover;
  border:1px solid #e8eaf0;
}
