/* Keep the registration sheet fully visible on small screens. */
.social-login {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.1;
}

.social-login > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.social-button {
  width: 100%;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font: 700 12px "DM Sans", sans-serif;
}

.social-button svg {
  width: 15px;
  height: 15px;
}

/* These fields are registration-only. Keep them hidden in login mode even
   when the general form-label rule sets labels to display: block. */
#nameField[hidden],
#birthdayField[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .profile-panel {
    max-height: calc(100dvh - 24px);
    padding: 18px 20px;
  }

  .profile-panel h2 {
    margin-bottom: 8px;
  }

  .profile-panel form {
    margin-top: 16px;
  }

  .profile-panel label {
    margin: 10px 0;
  }

  .profile-panel input {
    padding: 10px;
  }
}
