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

:root {
  --bg: #080810;
  --card: #10101a;
  --border: #1e1e2e;
  --border-focus: #7c6fff;
  --text: #f0f0f8;
  --text-sub: #8888aa;
  --text-muted: #4a4a6a;
  --accent: #7c6fff;
  --accent-hover: #9585ff;
  --danger-bg: rgba(220, 60, 60, 0.12);
  --danger-border: rgba(220, 60, 60, 0.35);
  --danger-text: #e07070;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* subtle radial glow at top */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,111,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
}

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 24px 60px rgba(0,0,0,0.5);
}

/* ── Logo ── */
.logo-wrap {
  margin-bottom: 1.4rem;
}

.lv-logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── Brand text ── */
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 4px;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Form ── */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.error-banner {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
}

.field-group input {
  width: 100%;
  padding: 10px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.field-group input::placeholder {
  color: var(--text-muted);
}

.field-group input:focus {
  border-color: var(--border-focus);
  background: rgba(124,111,255,0.05);
}

.btn-signin {
  margin-top: 4px;
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.1px;
}

.btn-signin:hover { background: var(--accent-hover); }
.btn-signin:active { transform: scale(0.99); }

/* ── Footer ── */
.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}
