/* Standalone login / register — SaaS-style (light card, blue primary). */
:root {
  --auth-brand: #1a56db;
  --auth-brand-hover: #1547b8;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-border: #e5e7eb;
  --auth-sso-bg: #f3f4f6;
  --auth-sso-hover: #e5e7eb;
  --auth-input-bg: #f0f7ff;
  --auth-input-border: #dbeafe;
  --auth-page-bg: #ffffff;
  --auth-danger: #b91c1c;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Lexend Deca", Helvetica, Arial, sans-serif;
  background: var(--auth-page-bg);
  color: var(--auth-text);
  -webkit-font-smoothing: antialiased;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1.5rem;
  box-sizing: border-box;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  margin: 0 0 2rem;
  text-align: center;
  line-height: 0;
}

.auth-logo img {
  width: auto;
  height: auto;
  max-width: min(200px, 70vw);
  max-height: 72px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.auth-sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--auth-text);
  background: var(--auth-sso-bg);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  cursor: not-allowed;
  opacity: 0.72;
  transition: background 0.15s ease;
}

.auth-sso-btn:disabled {
  cursor: not-allowed;
}

.auth-sso-btn svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--auth-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--auth-text);
}

.auth-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--auth-text);
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

select.auth-select {
  cursor: pointer;
  appearance: auto;
}

.auth-input.input-validation-error {
  border-color: var(--auth-danger);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -0.35rem;
}

.auth-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--auth-brand);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--auth-brand-hover);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--auth-brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
  background: var(--auth-brand-hover);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.auth-alert--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.auth-alert--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-alert p {
  margin: 0.5rem 0 0;
}

.auth-alert .auth-config-snippet {
  margin-top: 0.5rem;
}

.auth-validation-summary {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--auth-danger);
}

.auth-validation-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--auth-danger);
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
}

.auth-footer a {
  font-weight: 600;
  color: var(--auth-brand);
  text-decoration: none;
}

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

.auth-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-muted);
  margin: -1rem 0 1.75rem;
  line-height: 1.5;
}

.auth-legal {
  flex-shrink: 0;
  padding: 0 1rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--auth-muted);
}

.auth-legal a {
  color: var(--auth-muted);
  text-decoration: underline;
}

.auth-legal a:hover {
  color: var(--auth-text);
}

.auth-config-snippet {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.7rem;
  line-height: 1.45;
  overflow-x: auto;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
}
