:root {
  --bg: #0f1419;
  --panel: #171c24;
  --border: #2a323d;
  --text: #e6edf3;
  --muted: #8b97a7;
  --accent: #2f81f7;
  --accent-hover: #4493f8;
  --red: #da3633;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.logo { font-size: 32px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

input {
  width: 100%;
  padding: 10px 14px;
  background: #1e252f;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--accent); }

.field { margin-bottom: 18px; }

.btn {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.btn:hover { background: var(--accent-hover); }

.error {
  background: rgba(218, 54, 51, .12);
  color: #ff7b72;
  border: 1px solid rgba(218, 54, 51, .3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
  line-height: 1.5;
}
