:root {
  --bg-dark: #4d4d4d;
  --bg-darker: #3f3f3f;
  --panel: #e5e5e5;
  --panel-soft: #f3f3f3;
  --text-main: #3a3a3a;
  --text-muted: #666666;
  --accent: #0062b0;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/login-assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/login-assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  background: linear-gradient(160deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-shell {
  width: min(480px, calc(100% - 40px));
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}

.login-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  pointer-events: none;
}

.login-title {
  margin: 0 0 6px 0;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.login-subtitle {
  margin: 0 0 18px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.login-panel {
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.3px;
}

.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #8a8a8a;
  background: #d7d7d7;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 98, 176, 0.15);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.login-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--text-main);
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  background: #2f2f2f;
}

.helper {
  font-size: 10px;
  color: var(--text-muted);
}

.error {
  margin-top: 12px;
  font-size: 11px;
  color: #7a1b1b;
  background: #f6dede;
  border: 1px solid #d4a6a6;
  border-radius: 8px;
  padding: 8px 10px;
}

.error:empty {
  display: none;
}

.footer {
  margin-top: 18px;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
}
