* { box-sizing: border-box; }

:root {
  --bg: #0f1420;
  --panel: rgba(26, 29, 39, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #8b5cf6;
  --accent2: #ec4899;
  --err: #f87171;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(1000px 500px at 90% 110%, rgba(236, 72, 153, 0.3), transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #12162a 100%);
  background-attachment: fixed;
  padding: 20px;
}

.login-view { width: 100%; display: flex; justify-content: center; }

.login-box {
  width: min(380px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.login-box h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-box .sub {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.9rem;
}

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

.field span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input {
  background: rgba(16, 19, 27, 0.9);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.login-error {
  color: var(--err);
  font-size: 0.82rem;
  margin: 0 0 8px;
  min-height: 1.2em;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  margin-top: 6px;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}

.btn:active { transform: translateY(0); }
