:root {
  --bg: #0f172a;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.54);
  --text-faint: rgba(255, 255, 255, 0.38);
  --accent: #448aff;
  --error: #ff5252;
  --success: #69f0ae;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
}

.icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: block;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
}

p.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.5;
}

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

input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.message {
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.message.error { color: var(--error); }
.message.success { color: var(--success); }

.hint {
  font-size: 12px;
  color: var(--text-faint);
  margin: -8px 0 16px;
}

.state { display: none; }
.state.active { display: block; }
.icon { border-radius: 12px; }
.hidden { visibility: hidden; }

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