.auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 18, 20, 0.42);
  cursor: pointer;
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 390px);
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(207, 215, 216, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(19, 31, 34, 0.18);
}

.auth-modal-panel,
.auth-modal-panel * {
  font-weight: 400;
}

.auth-modal-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.auth-modal-description {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.auth-choice-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #4f5659;
  font-size: 16px;
  line-height: 1.2;
}

.auth-choice-button span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.auth-choice-button:hover,
.auth-choice-button:focus-visible {
  border-color: rgba(35, 107, 94, 0.44);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 107, 94, 0.12);
}

.auth-choice-button:disabled,
.auth-skip-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-choice-icon {
  width: 24px;
  height: 24px;
  justify-self: center;
}

.auth-skip-button {
  justify-self: center;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-skip-button:hover,
.auth-skip-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.auth-modal-message {
  min-height: 20px;
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .auth-modal-root {
    padding: 14px;
  }

  .auth-modal-panel {
    width: min(100%, 350px);
    padding: 20px;
  }

  .auth-modal-panel h2 {
    font-size: 22px;
  }

  .auth-choice-button {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 15px;
  }
}
