:host {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  padding: 1rem;
}

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

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.875rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

input {
  padding: 0.625rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}

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

button[type='submit'],
button:not(.program-button):not(.link-button) {
  padding: 0.625rem 1rem;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

button[type='submit']:hover,
button:not(.program-button):not(.link-button):hover {
  background: #4338ca;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.625rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.program-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  width: 100%;
}

.program-button:hover {
  background: #eef2ff;
  border-color: #4f46e5;
}

.program-name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #111;
}

.program-meta {
  font-size: 0.8125rem;
  color: #666;
}

.link-button {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  margin-top: 0.75rem;
}

.link-button:hover {
  text-decoration: underline;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

dt {
  font-weight: 500;
  color: #555;
}

dd {
  margin: 0;
  color: #111;
  word-break: break-all;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
}