/* Modern onboarding mode selection cards */
.auth-wrap:has(.mode-selection) {
  background: rgba(248, 250, 252, .96);
}

.mode-selection {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .08);
}

.mode-selection .eyebrow {
  display: none;
}

.mode-selection h1 {
  margin-bottom: .5rem;
  color: #1e293b;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -.025em;
}

.mode-selection > .muted {
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: .875rem;
  line-height: 1.4;
}

.mode-selection form {
  display: block;
}

.mode-selection .mode-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  margin-bottom: .75rem;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: .75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mode-selection .mode-option:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.mode-selection .mode-option.is-selected {
  border-color: #059669;
  background: rgba(236, 253, 245, .4);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.mode-selection .mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mode-selection .mode-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: .625rem;
  border-radius: .5rem;
  background: #d1fae5;
  color: #047857;
}

.mode-selection .mode-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mode-selection .mode-copy {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  padding-top: .125rem;
}

.mode-selection .mode-copy b {
  color: #1e293b;
  font-weight: 600;
}

.mode-selection .mode-copy small {
  color: #64748b;
  font-size: .75rem;
  line-height: 1.25rem;
}

.mode-selection button.primary {
  width: 100%;
  margin-top: 1rem;
  padding: .75rem;
  border-radius: .75rem;
  background: #059669;
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: background-color .2s ease, transform .2s ease;
}

.mode-selection button.primary:hover {
  background: #047857;
  transform: none;
}

@media (max-width: 480px) {
  .mode-selection { padding: 1.5rem; }
}
