* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #111827;
}

.sso-container {
  min-height: 100vh;
  padding: 32px;
  display: flex;
  justify-content: center;
  background: #f3f4f6;
}

.cases-shell {
  width: 100%;
  max-width: 100rem;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px #00000014;
}

.cases-header {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.cases-subtitle {
  margin: 8px 0 0;
  color: #6b7280;
}

.test-result {
  margin: 24px 0;
  padding: 16px;
  border-radius: 8px;
}

.test-result[data-type="error"] {
  background: #fef2f2;
  color: #991b1b;
}

.test-result[data-type="success"] {
  background: #f0fdf4;
  color: #166534;
}

.cases-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-card {
  border: 2px solid #e5e7eb;
  border-radius: 1.2rem;
  overflow: hidden;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.case-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.case-number {
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

.case-label {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}

.btn-run {
  flex-shrink: 0;
  padding: 7px 14px;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.25rem;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-run:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-run:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

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

.case-detail {
  padding: 16px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.case-description {
  margin: 0;
  font-size: 1.3rem;
  color: #6b7280;
  font-style: italic;
}

.login-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #f3f4f6;
  border-top: 6px solid #2563eb;
}

.login-content {
  width: 100%;
  max-width: 30rem;
}

.login-brand {
  margin: 0 0 32px;
  font-weight: 700;
  color: #2563eb;
}

.login-content h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.login-button {
  display: flex;
  gap: 12px;
  width: 100%;
  font: inherit;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 32px;
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.login-button:hover:not(:disabled) {
  background: #e5e7eb;
}

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

.login-button:focus-visible,
.logout-button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.login-message {
  margin: 24px 0 0;
  line-height: 1.6;
  color: #991b1b;
}

.logout-form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.logout-button {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {

  .sso-container,
  .cases-shell {
    padding: 16px;
  }

  .case-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .case-info {
    flex-basis: 100%;
  }
}