:root {
  --bg: #0f172a;
  --bg-accent: #111827;
  --panel: rgba(15, 23, 42, 0.8);
  --panel-border: rgba(148, 163, 184, 0.25);
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
  color: var(--text);
}

.container {
  width: min(420px, calc(100vw - 32px));
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
}

h1,
h2 {
  margin: 0 0 12px;
  text-align: center;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid rgba(79, 70, 229, 0.6);
  border-color: transparent;
}

button {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

button:active {
  transform: translateY(0);
}

.alert {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #bbf7d0;
}

.dashboard {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.kpi {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 18px;
}

.kpi strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.kpi span {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 20px;
}

.topbar button {
  width: auto;
  padding: 10px 16px;
}
