.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

.auth-card {
  width: min(520px, 96vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.auth-header {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.auth-header img {
  width: 52px;
  height: 52px;
}

.auth-header h1 {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

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

.auth-form input {
  font-size: 16px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-note {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-links .button {
  font-weight: 700;
}

.auth-note-text {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .auth-header {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .auth-header h1 {
    font-size: 1.35rem;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions button {
    min-height: 56px;
    font-size: 1.15rem;
    padding: 14px 18px;
  }

  .auth-links .button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
