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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

h1 { font-size: 1.75rem; font-weight: 700; color: #0057b8; margin-bottom: 0.25rem; }

.subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.5rem; font-family: monospace; }

.field { margin-bottom: 1rem; text-align: left; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: #374151; }
.field input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.15s;
  background: #fff;
}
.field input:focus { outline: none; border-color: #0057b8; }

button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #0057b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: #0048a0; }
button:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-secondary { background: #4b5563; }
.btn-secondary:hover { background: #374151; }

.btn-success { background: #059669; }
.btn-success:hover { background: #047857; }

.status-box {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  background: #f3f4f6;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.6;
}
.status-box.running    { background: #d1fae5; color: #065f46; }
.status-box.deallocated,
.status-box.stopped    { background: #fee2e2; color: #991b1b; }
.status-box.starting   { background: #fef3c7; color: #92400e; }
.status-box.loading    { color: #6b7280; }

.error-msg  { color: #dc2626; font-size: 0.875rem; margin-top: 0.75rem; }
.info-msg   { color: #1d4ed8; font-size: 0.875rem; margin-top: 0.75rem; }
.success-msg { color: #065f46; font-weight: 600; margin-top: 0.75rem; }
.muted      { color: #6b7280; }
.hidden     { display: none !important; }

.divider { border: none; border-top: 1px solid #e5e7eb; margin: 1.25rem 0; }

.startup-message {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.startup-message-loading {
  background: #fef3c7;
  color: #92400e;
}

.startup-message-error {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 600;
}
