/**
 * TEMPORARY PROTOTYPE ADAPTER.
 * Replace with the Kristin repository component identified in
 * INTEGRATION_MANIFEST.md before merging to main.
 */

:root {
  color-scheme: light;
  --auth-bg: #fbfefe;
  --auth-panel: #ffffff;
  --auth-text: #003755;
  --auth-muted: #5d707a;
  --auth-border: #d9e6ea;
  --auth-focus: #00959f;
  --auth-primary: #00959f;
  --auth-primary-hover: #007d85;
  --auth-navy: #003755;
  --auth-teal: #00959f;
  --auth-coral: #ffa791;
  --auth-green: #d2f4bc;
  --auth-yellow: #fff787;
  --auth-danger: #9c3a26;
  --auth-success-bg: #eefbe7;
  --auth-error-bg: #f9e8e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-text);
  background:
    linear-gradient(135deg, rgba(0, 149, 159, 0.08), rgba(255, 247, 135, 0.16) 42%, rgba(255, 255, 255, 0) 70%),
    var(--auth-bg);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: 0;
}

.auth-shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.auth-brand__logo {
  width: 58px;
  height: 56px;
  object-fit: contain;
}

.auth-brand__eyebrow {
  margin: 0 0 8px;
  color: var(--auth-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span {
  color: var(--auth-teal);
  font-family: "DM Serif Text", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.auth-brand__subhead {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: 1rem;
}

.auth-card {
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: var(--auth-panel);
  padding: 28px;
  box-shadow: 0 20px 48px rgba(0, 55, 85, 0.1);
}

.auth-card p {
  line-height: 1.5;
}

.auth-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.auth-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.auth-button:focus-visible {
  outline: 3px solid var(--auth-focus);
  outline-offset: 2px;
}

.auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-button--primary {
  background: var(--auth-primary);
  color: #fff;
}

.auth-button--primary:hover:not(:disabled) {
  background: var(--auth-primary-hover);
}

.auth-button--secondary {
  background: #fff;
  border-color: var(--auth-border);
  color: var(--auth-text);
}

.auth-button--secondary:hover:not(:disabled) {
  border-color: var(--auth-teal);
  background: rgba(0, 149, 159, 0.08);
}

.auth-message {
  min-height: 24px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.auth-message:empty {
  display: none;
}

.auth-message--status {
  background: var(--auth-success-bg);
  color: var(--auth-navy);
}

.auth-message--error {
  color: var(--auth-danger);
  background: var(--auth-error-bg);
}

.auth-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-muted);
}

.auth-loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--auth-border);
  border-top-color: var(--auth-primary);
  border-radius: 50%;
  animation: auth-spin 900ms linear infinite;
}

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

@media (max-width: 560px) {
  .auth-shell {
    padding: 32px 18px;
  }

  .auth-card {
    padding: 22px;
  }
}
