:root {
  --bg: #0b1020;
  --panel: #161c36;
  --panel-2: #1a2140;
  --border: #252d4f;
  --text: #e6e9f5;
  --muted: #8a93b4;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --red: #f43f5e;
  --green: #10b981;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(700px 400px at 80% 80%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.login-wrap { width: 100%; padding: 24px; }

.login-card {
  max-width: 420px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.login-card h1 {
  margin: 0 0 8px; font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.login-card h1::before {
  content: ""; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5);
}

.login-card .sub {
  text-align: center; color: var(--muted);
  margin: 0 0 28px; font-size: 14px;
}

form { display: flex; flex-direction: column; gap: 16px; }

label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

input {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 10px; font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white; border: 0;
  padding: 13px 16px; border-radius: 10px;
  cursor: pointer; font-size: 15px; font-weight: 600;
  font-family: inherit; margin-top: 8px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.1s, filter 0.15s;
}
button:hover { transform: translateY(-1px); filter: brightness(1.1); }
button:active { transform: translateY(0); }

#msg {
  font-size: 13px; min-height: 20px; text-align: center; margin-top: 4px;
}
#msg.err { color: var(--red); }
#msg.ok { color: var(--green); }
