/* Login */

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-1);
  font-family: var(--font);
  color: var(--ink-0);
}

.auth-split-brand .auth-logo-mark {
  display: block;
  width: min(180px, 70vw);
  height: auto;
}

.auth-split-brand .auth-brand-title {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: #fff;
}

.auth-split-brand .auth-brand-byline {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.auth-split-brand .auth-brand-tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-sm);
  max-width: 360px;
  line-height: 1.55;
  margin: 0;
}

.auth-panel-mark {
  display: block;
  height: auto;
}

.auth-layout {
  width: 100%;
  max-width: 400px;
}

.auth-panel {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-md);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.auth-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-0);
  color: #fff;
  flex-shrink: 0;
}

.auth-org {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-0);
}

.auth-tagline {
  font-size: var(--text-xs);
  color: var(--muted);
}

.auth-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
}

.auth-lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.auth-value-props {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-value-props li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-1);
}

.auth-value-props i {
  color: var(--brand);
  font-size: 0.95rem;
}

.auth-alert {
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.auth-alert--error {
  color: var(--err);
  background: var(--err-soft);
  border: 1px solid var(--err-line);
}

.auth-alert--warn {
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-input.is-invalid,
.auth-input-wrap input.is-invalid {
  border-color: var(--err);
  background: var(--err-soft);
}

.auth-input.is-invalid:focus,
.auth-input-wrap input.is-invalid:focus {
  box-shadow: 0 0 0 3px var(--err-line);
}

.auth-input,
.auth-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: var(--text-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-0);
}

.auth-input:focus,
.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-right: 40px;
}

.auth-reveal {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-submit {
  margin-top: var(--space-2);
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
}

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

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

.auth-support {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
}

.auth-foot {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
}
