.login-pf-page:has(.back-button-container) {
  #kc-header {
    margin-top: 40px;
  }

  #kc-info-wrapper {
    text-wrap: balance;
    margin-bottom: 50px;
  }
}

#mobile-input-label {
    display: none;
}

.phone-number-inputs-container {
  display: grid !important;
  grid-template-columns: calc(50% - 5px) calc(50% - 5px);
  gap: 30px;
  width: calc(100% + 20px);
  margin-left: -20px;
  margin-right: -10px;

  input {
    width: calc(100% + 10px);
  }
}

select#country-code {
    padding: 10px 20px !important;
    font-size: 16px;
    appearance: none;
    background: transparent url('../img/dropdown.svg') no-repeat right 10px center;
    margin-left: -10px;
}

.back-button-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: unset;
}
@media (max-width: 600px) {
    .phone-number-inputs-container {
        grid-template-columns: 100%;
        grid-template-rows: auto auto;

        input {
            margin-left: -10px;
            width: calc(100% + 20px);
        }
    }

    select#country-code {
        width: calc(100% + 20px);
        margin-right: -10px;
    }

    .back-button-container {
    left: 0;
  }
}

.sms-code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0;
  width: calc(100% + 20px);
  margin-left: -10px;

  .sms-code-input {
    border: 1px solid var(--border-grey);
    appearance: none;
    height: 90px;
    width: 100%;
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  /* Only show the first character when the value is updated to be the full code */
  .sms-code-input:first-of-type {
    padding: 1.1em !important;

  }

  .sms-code-input:focus {
    outline-color: var(--primary) !important;
    outline-width: 3px !important;
    outline-style: solid !important;
  }

  /* This gets rid of the up and down arrows in the input */
  .sms-code-input[type="number"]::-webkit-outer-spin-button,
  .sms-code-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    }
}
