@import url('https://fonts.googleapis.com/css2?family=Teko:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #d21f3c;
  --blue: #1f6fd2;
  --dark: #14161a;
  --dark-2: #1d2026;
  --grey: #9aa0aa;
  --light: #f2f3f5;
  --gold: #d8a13a;
  --ok: #35c46b;
  --font-display: 'Teko', 'Arial Narrow', sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  background: var(--dark);
  color: var(--light);
}

a { color: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--dark-2);
  border-bottom: 1px solid #2a2e36;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  color: var(--light);
  background: #2a2e36;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--blue); }
.btn-danger { background: var(--red); }
.btn-ok { background: var(--ok); }
.btn-ghost { background: transparent; border: 1px solid #3a3f4a; }

.card {
  background: var(--dark-2);
  border: 1px solid #2a2e36;
  border-radius: 12px;
  padding: 16px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3a3f4a;
  background: #101215;
  color: var(--light);
  font-family: var(--font-ui);
  font-size: 15px;
}
input:focus, select:focus { outline: 2px solid var(--blue); }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-box h1 {
  font-family: var(--font-display);
  font-size: 40px;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.login-box p.sub {
  color: var(--grey);
  margin: 0 0 20px;
  font-size: 14px;
}
.error {
  background: rgba(210, 31, 60, 0.15);
  border: 1px solid var(--red);
  color: #ff8a9a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.field { margin-bottom: 14px; }
