/**
 * Auth Modal — Steps & Profile Selection
 *
 * Multi-step flow controls, profile type selection, focus styles, and body lock.
 * Part of the auth-modal module split from auth-modal.css.
 *
 * @see static/css/auth-modal.css (original)
 */

.gf-auth-profile {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.gf-auth-step {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gf-auth-step__actions {
  display: flex;
  justify-content: flex-end;
}

.gf-auth-step__actions .btn {
  min-width: clamp(160px, 22vw, 220px);
}

.gf-auth-step__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: rgba(var(--gf-color-primary-rgb), 0.06);
  border-radius: calc(var(--gf-card-radius) - 0.25rem);
}

.gf-auth-step__summary-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gf-auth-step__summary-label {
  font-size: 0.9rem;
  color: var(--gf-color-neutral-600);
}

.gf-auth-step__summary-value {
  font-weight: 600;
  color: var(--gf-color-primary);
}

.gf-auth-step__change {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: none;
  color: var(--gf-color-primary);
  font-weight: 600;
  padding: 0.25rem 0;
}

.gf-auth-step__change:hover,
.gf-auth-step__change:focus {
  color: var(--gf-color-primary-hover);
}

.gf-auth-profile__legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gf-color-neutral-700);
  margin-bottom: 0.75rem;
}

.gf-auth-profile__options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.gf-auth-profile__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  gap: 0.6rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
  color: var(--gf-color-neutral-700);
}

.gf-auth-profile__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.gf-auth-profile__option[data-active='true'],
.gf-auth-profile__option:hover {
  border-color: var(--gf-color-primary);
  background-color: rgba(var(--gf-color-primary-rgb), 0.08);
  color: var(--gf-color-primary);
  box-shadow: 0 0 0 3px rgba(var(--gf-color-primary-rgb), 0.12);
}

.gf-auth-profile__label {
  pointer-events: none;
}

.gf-auth-modal__dialog:focus-visible,
.gf-auth-profile__option:focus-visible,
.gf-auth-modal__close:focus-visible,
.gf-auth-panel__back:focus-visible,
.gf-auth-step__change:focus-visible {
  outline: 2px solid var(--gf-color-primary);
  outline-offset: 3px;
}

body.gf-auth-modal-open {
  overflow: hidden;
}
