:root {
  --bg-main: #1e1f22;
  --bg-card: #2b2d31;
  --bg-input: #1e1f22;
  --primary: #5865f2;
  --text-main: #f2f3f5;
  --text-muted: #b5bac1;
  --radius: 6px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #313338, var(--bg-main));
  font-family: var(--font);
  color: var(--text-main);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field {
  margin-bottom: 16px;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: var(--radius);
  border: none;
  background: var(--bg-input);
  color: var(--text-main);
}

input:focus {
  outline: 1px solid var(--primary);
}

.forgot {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.1);
}

.register {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.register a {
  color: var(--primary);
  text-decoration: none;
}