input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #85858f;
  opacity: 1;
}

select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field,
.auth-field,
.form-grid > *,
.stack > * {
  min-width: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: stretch;
}

.row > * {
  min-width: 0;
  width: 100%;
}

.row > .btn,
.row > button {
  width: auto;
  white-space: nowrap;
}

#invite-code {
  min-width: 0;
  padding-inline: 13px;
  font-size: 14px;
}

.team-code {
  min-width: 0;
  gap: 12px;
}

.team-code code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-code .icon-btn,
.auth-code-row .auth-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 440px) {
  .row,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .row > .btn,
  .row > button,
  .auth-code-row .auth-secondary {
    width: 100%;
  }
}
