:root {
  --text-main: #fafafa;
  --text-muted: #a3a3a3;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --radius-full: 9999px;
  --radius-lg: 20px;
  --chrome-control-h: 32px;
  --font-brand: system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, monospace;
  --accent-pink-glow: rgba(99, 102, 241, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-brand);
}

.login-shell {
  width: min(420px, 92vw);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.login-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}

.login-error {
  color: #f87171;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 0.75rem;
}

.field span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: var(--text-main);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-pink-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  height: var(--chrome-control-h);
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  gap: 2px;
}

.lang-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.lang-switch-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.55), rgba(99, 102, 241, 0.28));
}
