:root {
  --bg: #0f1720;
  --panel: #16212e;
  --panel2: #1c2a3a;
  --line: #26374a;
  --text: #e6eef7;
  --muted: #8ba0b6;
  --accent: #3b82f6;
  --accent2: #6d28d9;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  font-family: Segoe UI, Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, #1d3a66 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #2a1b55 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100vh;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 22px;
  box-shadow: 0 20px 60px #0008;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 4px;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}

h1 {
  font-size: 17px;
  margin: 0 0 16px;
}

h1 small {
  color: var(--muted);
  font-size: 12px;
  margin-inline-start: 6px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

input {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #3b82f633;
}

input:disabled { opacity: .5; cursor: not-allowed; }

button {
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  border: 1px solid;
}

.alert.err { background: #dc26261a; border-color: #dc262666; color: #fca5a5; }
.alert.ok { background: #16a34a1a; border-color: #16a34a66; color: #86efac; }
.alert.warn { background: #d977061a; border-color: #d9770666; color: #fcd34d; }
.alert[hidden] { display: none; }
.alert .en { display: block; opacity: .8; direction: ltr; text-align: left; }

.switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
