/* RESET-12.1: minimal auth shell. This is not a restored legacy stylesheet. */
:root {
  color-scheme: light;
}

.public-auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f8fafc;
}

.public-auth-shell {
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.public-auth-card {
  width: min(100%, 420px);
  display: grid;
  gap: 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.public-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.public-auth-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.public-auth-brand__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.public-auth-brand__subtitle {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.public-auth-heading {
  display: grid;
  gap: 6px;
}

.public-auth-heading h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.public-auth-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.public-auth-form {
  display: grid;
  gap: 14px;
}

.public-auth-field {
  display: grid;
  gap: 7px;
}

.public-auth-field label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.public-auth-field input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 11px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 14px;
}

.public-auth-field input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
  border-color: #2563eb;
}

.public-auth-submit {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.public-auth-submit:hover {
  background: #1f2937;
}

.public-auth-submit:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.public-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.public-auth-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.public-auth-demo a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.public-auth-demo a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .public-auth-shell {
    align-items: stretch;
    place-items: center;
    padding: 14px;
  }

  .public-auth-card {
    border-radius: 14px;
    padding: 20px;
  }
}

.public-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1;
}

.public-auth-divider::before,
.public-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: #e5e7eb;
}

.public-auth-google-form {
  margin: -8px 0 0;
}

.public-auth-google-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.public-auth-google-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.public-auth-google-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.public-auth-google-button__mark {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.public-auth-google-note {
  margin: -12px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}
