* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a1a2e;
  --card: #16213e;
  --accent: #e94560;
  --accent-hover: #c73b54;
  --input-bg: #0f3460;
  --input-border: #2a3f6a;
  --text: #eee;
  --text-muted: #888;
  --label: #aaa;
  --error-bg: #3d0e1e;
  --error-fg: #f87171;
  --radius: 8px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  background: var(--card);
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 380px;
}

.login-title {
  text-align: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--label);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.18);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  margin-top: 8px;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.login-error {
  background: var(--error-bg);
  color: var(--error-fg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  border-left: 3px solid var(--error-fg);
}
