:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172027;
  background: #f3f6f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f3f6f7;
}

button { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 28px clamp(20px, 5vw, 56px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #172027;
  color: #fff;
}

.login-panel {
  align-self: center;
  width: min(100%, 420px);
  margin: 0 auto 72px;
  padding: 30px;
  border: 1px solid #d8e0e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 39, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #447066;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.status {
  min-height: 42px;
  margin: 14px 0 20px;
  color: #647178;
  font-size: 14px;
  line-height: 1.5;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  border: 1px solid #087f5b;
  background: #087f5b;
  color: #fff;
}

.primary-button:disabled {
  border-color: #bdc8cb;
  background: #dce3e5;
  color: #68767c;
  cursor: default;
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.24);
  outline-offset: 2px;
}

.error {
  margin: 16px 0 0;
  color: #a51d2d;
  font-size: 13px;
  line-height: 1.5;
}

.callback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.progress-panel {
  width: min(100%, 440px);
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 18px;
  border: 3px solid #d8e0e3;
  border-top-color: #087f5b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.admin-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 56px) 56px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8e0e3;
}

.success-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 32px 0 20px;
  color: #087f5b;
  font-size: 14px;
  font-weight: 700;
}

.success-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20a474;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d8e0e3;
  border-left: 1px solid #d8e0e3;
  background: #fff;
}

.detail {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #d8e0e3;
  border-bottom: 1px solid #d8e0e3;
}

.detail dt {
  margin-bottom: 6px;
  color: #68767c;
  font-size: 12px;
}

.detail dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
}

.secondary-button {
  width: auto;
  min-width: 96px;
  padding: 0 16px;
  border: 1px solid #bac6ca;
  background: #fff;
  color: #26343b;
}

@media (max-width: 620px) {
  .login-shell { padding: 20px; }
  .login-panel { margin-bottom: 36px; padding: 24px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .details { grid-template-columns: 1fr; }
  .secondary-button { width: 100%; }
}
