:root{
  --bg:#0b1220;
  --card:#0f1b33;
  --muted:#a8b3cf;
  --text:#eaf0ff;
  --line:rgba(255,255,255,.10);
  --btn:#2b66ff;
  --btn2:#244fbe;
  --danger:#ff4d4d;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 20% 10%, #142a5a 0%, var(--bg) 55%);
  color:var(--text);
}

.wrap{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px;
}

.card{
  width:min(520px, 100%);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(43,102,255,.20);
  border:1px solid rgba(43,102,255,.35);
  font-weight:800;
}
.title{font-size:18px;font-weight:800;letter-spacing:.2px}
.subtitle{font-size:13px;color:var(--muted);margin-top:2px}

.lang{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}

.form{display:grid; gap:14px}
.field label{display:block; font-size:13px; color:var(--muted); margin-bottom:7px}
.field input{
  width:100%;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  padding:12px 14px;
  outline:none;
}
.field input:focus{border-color:rgba(43,102,255,.7); box-shadow:0 0 0 4px rgba(43,102,255,.15)}

.passwordRow{
  display:flex; gap:10px; align-items:center;
}
.passwordRow input{flex:1}

.primary{
  border:none;
  background:linear-gradient(180deg, var(--btn), var(--btn2));
  color:white;
  border-radius:14px;
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
}
.primary:disabled{opacity:.6; cursor:not-allowed}

.ghost, .link{
  border:none;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  padding:10px 0;
}
.ghost{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.links{display:flex; justify-content:flex-end}
.link{color:#cfe0ff; text-decoration:underline; text-underline-offset:3px}

.status{min-height:18px; font-size:13px; color:var(--muted)}
.status.error{color:var(--danger)}
.status.ok{color:#7CFFB2}

.dialog{
  width:min(520px, 100%);
  border:none;
  padding:0;
  background:transparent;
}
.dialog::backdrop{background:rgba(0,0,0,.5)}
.dialogCard{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
}
.dialogHeader{display:flex; justify-content:space-between; align-items:center; gap:10px}
.dialogTitle{font-weight:900}
.iconBtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  width:40px;height:40px;
  cursor:pointer;
}
.dialogText{color:var(--muted); margin:10px 0 14px}
.dialogActions{display:flex; justify-content:flex-end; gap:10px; margin-top:12px}
.brandLogo{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:6px;
}

