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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.dashboard-container {
  max-width: 600px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.subtitle {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.4rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #4a9eff;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: #4a9eff;
  color: #fff;
}

.btn-primary:hover {
  background: #3a8eef;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: #22c55e;
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-secondary {
  background: #333;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #444;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-row .btn {
  flex: 1;
}

.toggle-link {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #888;
}

.toggle-link a {
  color: #4a9eff;
  text-decoration: none;
}

.toggle-link a:hover {
  text-decoration: underline;
}

.error-msg {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-provisioning {
  background: #1e3a5f;
  color: #60a5fa;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.provisioning-msg {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #888;
}

.status-ready {
  background: #14532d;
  color: #4ade80;
}

.status-stopped {
  background: #451a03;
  color: #fb923c;
}

.status-starting {
  background: #1e3a5f;
  color: #60a5fa;
}

.status-error {
  background: #450a0a;
  color: #f87171;
}

.server-info {
  margin: 1.5rem 0;
}

.server-info .row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #222;
  font-size: 0.9rem;
}

.server-info .row .label {
  color: #888;
}

.terminal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.terminal-wrapper #terminal {
  width: 100%;
  height: 100%;
}

.terminal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #141414;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 10;
  gap: 1rem;
}

.terminal-header a {
  color: #4a9eff;
  text-decoration: none;
  font-size: 0.85rem;
}

.terminal-header .title {
  color: #888;
  font-size: 0.85rem;
}

.terminal-body {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-top-color: #4a9eff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logout-link {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
}

.logout-link:hover {
  color: #e0e0e0;
}
