:root {
  --navy: #0e1a3a;
  --navy-dark: #05070f;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --cyan: #22d3ee;
  --bg: #05070f;
  --card-bg: rgba(255, 255, 255, 0.04);
  --text: #eef0fb;
  --text-muted: #97a0c3;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(167, 139, 250, 0.6);
  --err: #e74c3c;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

.bg-glow-2 {
  bottom: -15%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 380px;
  margin: 24px;
  padding: 40px 36px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-watermark {
  position: absolute;
  z-index: 0;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.login-title,
.login-sub,
.login-field,
#login-erro,
.login-btn {
  position: relative;
  z-index: 1;
}

.login-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.login-sub {
  margin-top: -12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.login-field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.login-field input:focus { border-color: var(--border-hover); }

#login-erro {
  display: none;
  color: var(--err);
  font-size: 0.85rem;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #04050b;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 30px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 12px 40px rgba(139, 92, 246, 0.5);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
