:root {
  --bg: #060d1c;
  --bg-soft: #0a1730;
  --bg-elevated: #0f1f3d;
  --bg-card: #142a4d;
  --bg-card-2: #17305a;
  --border: rgba(148, 178, 224, 0.14);
  --border-strong: rgba(148, 178, 224, 0.26);
  --text: #f1f5fb;
  --text-muted: #8ea1c4;
  --accent: #4f8cff;
  --accent-strong: #2f6fed;
  --accent-soft: rgba(79, 140, 255, 0.16);
  --accent-glow: rgba(79, 140, 255, 0.35);
  --danger: #f4536a;
  --danger-soft: rgba(244, 83, 106, 0.16);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(79, 140, 255, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

header.topbar {
  background: rgba(10, 23, 48, 0.82);
  backdrop-filter: blur(14px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
header.topbar .brand img { height: 26px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
header.topbar .brand span { color: var(--accent); }
header.topbar a.sair-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }

.card {
  background: linear-gradient(165deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 320px; font-family: 'SF Mono', Menlo, Consolas, monospace; line-height: 1.5; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.erro {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(244, 83, 106, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box {
  width: 100%; max-width: 380px; text-align: center;
  background: linear-gradient(165deg, var(--bg-card-2), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}
.login-box .login-logo { width: 96px; margin-bottom: 16px; filter: drop-shadow(0 0 22px var(--accent-glow)); }
.login-box .logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.login-box .logo span { color: var(--accent); }
.login-box p.muted { color: var(--text-muted); margin-bottom: 26px; }
.login-box form { text-align: left; }
.login-box button { width: 100%; }

.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.list-header h1 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.muted { color: var(--text-muted); font-size: 0.85rem; }
