:root {
  --accent: #5fd068;
  --accent-hover: #3fb950;
  --text: #e6edf6;
  --text-muted: rgba(230, 237, 246, 0.65);
  --error: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.login-page {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background-color: #0a0f1e;
  background-image: url('/static/images/login-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-container {
  width: 100%;
  max-width: 360px;
  padding: 40px 36px;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.login-container h1 {
  margin: 0 0 24px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-container label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-container input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 208, 104, 0.25);
}

.login-container button {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: var(--accent);
  color: #0a0f1e;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.login-container button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 18px rgba(95, 208, 104, 0.45);
}

.error-message {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 107, 107, 0.12);
  color: var(--error);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.brand-mark {
  position: fixed;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.brand-mark strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.brand-mark span {
  display: block;
  opacity: 0.85;
  font-size: 11px;
}

.version-mark {
  position: fixed;
  right: 16px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Consolas', 'Monaco', monospace;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
