/* Auth screens — AnaliSUS identity (tokens only) */

.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: stretch;
  background: var(--color-brand-primary-deep);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: 1fr;
}

.auth-brand {
  display: none;
  position: relative;
  overflow: hidden;
  padding: var(--space-12);
  color: var(--color-text-on-brand);
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--color-brand-accent) 28%, transparent), transparent 42%),
    linear-gradient(165deg, var(--color-brand-primary-deep), var(--color-brand-primary));
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.auth-brand__inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-8);
  min-height: 100%;
}

.auth-brand .wordmark {
  font-size: var(--text-4xl);
  color: var(--color-text-on-brand);
  text-decoration: none;
}

.auth-brand__tag {
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--line-height-snug);
  color: color-mix(in srgb, var(--color-text-on-brand) 82%, transparent);
}

.auth-brand__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--color-text-on-brand) 78%, transparent);
}

.auth-brand__points li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.auth-brand__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-accent);
}

.auth-network {
  width: 160px;
  height: 160px;
  opacity: 0.55;
  color: var(--color-text-on-brand);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--color-surface-secondary);
}

.auth-card {
  width: min(100%, var(--auth-card-width));
  padding: var(--space-10);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: var(--border-default);
}

.auth-card--wide {
  width: min(100%, 520px);
}

.auth-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.auth-card .wordmark {
  display: block;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
  text-decoration: none;
  color: inherit;
}

.auth-card__lead {
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-8);
  line-height: var(--line-height-snug);
}

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

.auth-form .btn--block,
.auth-form .btn.btn--primary {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.auth-success {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: var(--text-sm);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.auth-links a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: var(--font-medium);
}

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

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}

.auth-split {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border-default);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.auth-split a {
  color: var(--color-brand-primary);
  font-weight: var(--font-semibold);
  text-decoration: none;
}

.auth-muni {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(280px, 1.05fr) minmax(420px, 0.95fr);
  }

  .auth-brand {
    display: block;
  }

  .auth-panel {
    padding: var(--space-12);
  }
}

[data-theme="dark"] .auth-panel {
  background: var(--color-surface);
}

[data-theme="dark"] .auth-card {
  background: var(--color-surface-secondary);
}
